Sub topic 10
Setting Values in the Transform Panel
This chapter assumes you can orbit, pan, and zoom the viewport, select an object, and use G, R, and S with axis constraints. It covers the Transform panel in the 3D viewport sidebar and the Object properties tab. Both edit the same stored values.
What the panel shows
Every object stores three transform values: location, rotation, and scale. The Transform panel displays them as editable fields. Typing a number in a field sets the value directly, with no mouse movement involved. This is how you get exact placement and how you check what a G, R, or S operation did.
There are two places to find the panel:
- Sidebar (N panel). Hover over the 3D viewport and press N. Open the Item tab. The Transform panel lists Location, Rotation, and Scale.
- Properties editor. Select the Object tab (the orange square icon). The Transform panel there has the same fields.
Both views read from and write to the same data. Changing a value in one updates the other at once.
The fields
| Field | Unit | Notes |
|---|---|---|
| Location X, Y, Z | Scene length unit (meters by default) | Position of the object's origin in world space, or relative to its parent if it has one |
| Rotation X, Y, Z | Degrees | Displayed in degrees. Python stores radians. |
| Mode | Drop-down | Rotation mode. The default is XYZ Euler. |
| Scale X, Y, Z | Unitless factor | 1.0 is original size. Negative values mirror the object. |
The panel can also show Dimensions in the sidebar. Dimensions are the object's bounding box size in scene units. They are derived from scale and mesh size, so they are not a separate stored transform. Setting Dimensions X to 4 changes the scale value to make the box 4 units wide.
Editing a field
You can edit a field in several ways:
- Double-click the field, type a value, and press Enter. Press Tab to jump to the next field. Press Esc to cancel.
- Click and drag left or right on the field to change the value continuously. Hold Ctrl while dragging to step in increments, or Shift for fine control.
- Click the arrows at either end of the field to nudge the value up or down.
- Type an expression. Fields accept math, such as
1.5 + 0.25,2 * 3, or45 / 2. Units work too:30cmor1.5m.
Dragging down across several fields in a column edits all of them at once. Click the first field and drag straight down across the others, then release. Type one value and press Enter. All the fields you swept now hold that value. This is a quick way to enter a uniform scale of 2 on every axis.
Holding Alt while you commit a value applies it to every selected object, not only the active one. Without Alt, the panel edits only the active object. This surprises many users who select five objects, type a new Z location, and see only one move.
Rotation in degrees, and rotation modes
The panel shows rotation in degrees even though Blender stores Euler angles internally in radians. Typing 90 in Rotation Z gives a quarter turn. You never need to convert unless you work through Python, which is covered later in this chapter.
The Mode drop-down under Rotation changes how rotation is stored:
- XYZ Euler and the other Euler orders store three angles. Each order applies the axes in a different sequence. The default is fine for most work.
- Axis Angle stores one rotation axis and one angle. The panel shows four fields: W (the angle), then X, Y, Z (the axis).
- Quaternion stores four values (W, X, Y, Z) and avoids gimbal lock. These numbers are hard to read by eye, so use this mode only when a task calls for it.
Switching modes converts the existing rotation, so the object does not jump. The values in the fields change to a different representation of the same orientation. Do not edit quaternion numbers by hand unless you know what each one means.
Locking and resetting fields
Each field group has a lock icon (a small padlock) on the right. In the sidebar, the icons sit beside each axis. Click one to lock that value. A locked value cannot be changed by G, R, S, or the gizmos. You can still type in the field. Locks help prevent accidental drift, for example by locking Z location on a floor-level prop.
To reset a single field to its default, hover over it and press Backspace. For a whole column, hover over a field and press Ctrl+Backspace... in practice, the more reliable route is right-clicking a field and choosing Reset All to Default Values or Reset Single to Default Value. Default is 0 for location and rotation, and 1 for scale. Clearing transforms for whole objects, with Alt+G, Alt+R, and Alt+S, is a separate topic in a later chapter.
Animation colors and keyframes
If the object is animated, the fields change color:
- Gray or normal: the property is not animated.
- Green: the property has an animation curve, but no key on the current frame.
- Yellow: a keyframe exists on the current frame.
- Orange: the value was changed since the last keyframe and is not yet stored.
Hover over a field and press I to insert a keyframe. Press Alt+I to remove one. Changing an animated value without inserting a key resets the value when the frame changes. If your typed value seems to vanish when you scrub the timeline, check for a green or orange field.
Parenting and what the numbers mean
Location, rotation, and scale in the panel are values relative to the object's parent. If an object has no parent, they are world values. If it has a parent, they describe the object in the parent's space. A child shown at location (0, 0, 0) sits at its parent's origin, wherever that is in the scene. If numbers do not match what you see in the viewport, check the Relations panel in Object properties for a parent.
Common errors
- Only one object moved. The panel edits the active object. Use Alt to apply a value to all selected objects.
- The value reverts. The field is animated, or a driver controls it. Look for colored fields.
- A value will not change when you use G. The axis is locked. Check the padlocks.
- Scale shows 1.0 but the object looks large. The size is in the mesh data, or applied scale was baked in. Check Dimensions.
- Rotation shows odd numbers like 89.999. This is floating-point rounding, or the object has a different rotation mode. It is harmless.
- Typed
90but got a tiny rotation in a script. Python uses radians. The panel uses degrees.
The same values in Python
The panel fields correspond to properties on the object. This script reads them:
import bpy
obj = bpy.context.active_object
print(obj.name, obj.location, obj.rotation_euler, obj.scale)This script sets them. Note the math.radians call, which converts 45 degrees to the radians the API expects:
import bpy
import math
obj = bpy.context.active_object
obj.location = (1.0, 2.0, 0.5)
obj.rotation_euler = (0.0, 0.0, math.radians(45))
obj.scale = (2.0, 2.0, 2.0)After running it, open the sidebar. Location shows 1 m, 2 m, 0.5 m, Rotation Z shows 45°, and Scale shows 2 on each axis. The panel confirms what the script did.
When to use the panel
Use the panel when you need a known number: placing a wall at exactly 3 m, setting a camera tilt to 90°, or checking that a scale is 1 before applying it. Use G, R, and S for rough, visual work. Use the gizmos when you want direct handles without typing. Many workflows mix them: place roughly with keys, then clean up the values in the panel.
Exercise
You select five cubes and type 2 into the Location Z field of the active cube, then press Enter. Only the active cube moves. How do you make all five cubes take Z = 2, and what would you check if the value snapped back when you changed frames?
Show answer
Type the value again, but hold Alt when you press Enter, so the change applies to all selected objects. If the value snaps back when you change frames, the field is animated. A green or orange field means a keyframe or curve controls it. Insert a keyframe with I over the field, or delete the animation, so the typed value is kept.
Exercise
A script sets obj.rotation_euler = (0, 0, 90) and the object barely turns. What is wrong, and what is the fix?
Show answer
The API expects radians, so 90 means 90 radians, which is about 14.3 turns plus a small remainder. Use math.radians(90) after importing math. The panel would then show 90°.