Sub topic 12
Global, Local, and View Orientations
This chapter assumes you can select objects, use G, R, and S with axis keys, and type numeric values during a transform. It also assumes you know the X, Y, and Z axes. Here you will learn how a transform orientation decides which directions "X", "Y", and "Z" mean when you constrain a transform.
What a transform orientation is
An axis constraint such as G then Z limits movement to one axis. The transform orientation decides where that axis points. The same keystrokes can move an object in different directions depending on the orientation.
Blender stores the orientation as a setting in the header of the 3D Viewport, in the Transform Orientations drop-down. The default is Global. The setting applies to the move, rotate, and scale tools, to the gizmos, and to typed constraints.
Changing the orientation does not change the object. It only changes the reference directions used while you transform it.
The main orientations
| Orientation | The axes follow | Typical use |
|---|---|---|
| Global | The world. X, Y, and Z are the same for every object in the scene. | Placing objects in the scene, aligning to the grid |
| Local | The active object's own rotation. | Moving an object along its own length, sliding a rotated door |
| Normal | The face, edge, or vertex normal in Edit Mode. In Object Mode it matches Local. | Extruding or moving mesh parts along a surface |
| Gimbal | The Euler rotation channels of the object. | Editing animation curves for Euler rotations |
| View | The screen: X is right, Y is up, Z points toward you. | Moving something "left" on screen regardless of the scene |
| Cursor | The rotation of the 3D cursor. | Aligning to a custom direction you set with the cursor |
| Parent | The rotation of the object's parent. | Working inside a rigged or grouped hierarchy |
This chapter focuses on Global, Local, and View. They cover most daily work.
Global
Global axes are fixed to the scene. The red X line, green Y line, and blue Z line you see in the viewport grid are the Global axes. Pressing G Z always moves an object straight up or down in world space, even if the object is tilted.
Local
Local axes belong to the object and rotate with it. If you rotate a box 45 degrees around Z, its Local X axis now points diagonally across the grid. Pressing G X with Local orientation moves the box along its own length, which is diagonal in world space.
Local uses the active object's orientation. If several objects are selected, they all move along the active object's axes, not along each object's own axes. This is a common surprise. See the active object chapter for how to tell which object is active.
View
View axes follow your camera angle in the viewport. X is always screen-right and Y is always screen-up. Z points out of the screen toward you. Pressing G Z with View orientation moves an object toward or away from your eye, which changes its apparent size but not its position on screen.
View is useful for quick, visual nudges. It is a poor choice when you need repeatable results, because orbiting the viewport changes the axes.
Seeing the difference
The diagram shows the same key sequence, G then X, giving different results.
Changing the orientation
You can change the orientation in two ways.
- Use the Transform Orientations drop-down in the header of the 3D Viewport and pick a value.
- Press the axis key more than once during a transform. This changes the orientation for that single transform only.
The second method is faster and does not change your header setting.
Pressing the axis key twice
During a transform, the first press of an axis key uses the orientation set in the header. A second press switches to the Local orientation for that axis. A third press turns the constraint off. In Blender, when the header is set to Global, the sequence for G is:
Xconstrains to the Global X axis.Xagain constrains to the Local X axis of the object.Xa third time removes the constraint.
If the header is set to something other than Global, the first press uses that orientation and the second press uses Global. The cycle always alternates between the header's orientation and the other one, so check the header text at the bottom of the viewport. The status bar and the viewport text show the active constraint, for example "along global X" or "along local X".
Constraining to a plane
Holding Shift while pressing an axis key excludes that axis and constrains movement to the other two. G Shift+Z moves the object in the plane parallel to the floor. Orientation applies here too. With Local orientation, Shift+Z uses the plane perpendicular to the object's own Z axis.
Orientation and numeric input
Typed values follow the same orientation. If you press G, X, 2, and Enter with Local orientation, the object moves 2 units along its own X axis, not the world X axis. When you type values, always check the orientation first. A move of 2 units in Global can look identical to a move of 2 units in Local when an object is not rotated, which hides mistakes until a rotated object appears.
Scaling works the same way. S X 2 with Local orientation stretches an object along its own length. In Global orientation, the same keys on a rotated object stretch it along the world X axis. Because a scale is applied to the object's local coordinate system, a non-uniform scale on a rotated object can look skewed. Prefer Local for scaling rotated objects unless you have a reason not to.
Orientation and the gizmos
The move, rotate, and scale gizmos draw their arrows and rings in the current orientation. Switch from Global to Local and the gizmo tilts to match the active object. This makes the orientation visible before you drag, so it is a quick way to confirm your setting.
Orientation and the Transform panel
The Transform panel (N key, Item tab) and the Object properties show an object's location, rotation, and scale. These values are not affected by the orientation setting. Location is always world-space unless the object has a parent, in which case it is relative to the parent. Rotation is the object's Euler angles. Scale is the object's scale factors in its own local axes. Orientation only affects interactive transforms.
Reading orientation from Python
Python reaches the same information through the object's world matrix. The matrix_world holds the object's rotation and position in the world. Its local X axis is the first column of the rotation part.
import bpy
obj = bpy.context.active_object
rot = obj.matrix_world.to_3x3()
local_x = rot.col[0]
local_y = rot.col[1]
local_z = rot.col[2]
print(obj.name)
print("Local X in world space:", local_x.normalized())
print("Local Y in world space:", local_y.normalized())
print("Local Z in world space:", local_z.normalized())For an unrotated object, the three values print as (1, 0, 0), (0, 1, 0), and (0, 0, 1), which match the Global axes. For the box rotated 45 degrees around Z, Local X prints as roughly (0.707, 0.707, 0).
The normalized() call matters. If the object is scaled, the columns of the matrix are scaled too, so their length is not 1.
Common errors
- The object moves in the wrong direction. The orientation is not what you thought. Check the header drop-down and the colored constraint line.
- Several objects move along one object's axes. Local uses the active object. Change the active object or switch to Global.
- Results change after orbiting the view. You are using View orientation. Switch to Global for repeatable work.
- Local and Global look identical. The object has no rotation, so the axes match. Rotate the object to see the difference.
- Scaling looks skewed. You applied a non-uniform scale along Global axes on a rotated object. Undo and repeat with Local.
Exercise
A box is rotated 90 degrees around the Z axis. The header orientation is Global. You press G, X, X, type 3, and press Enter. Along which axis, in world space, does the box move, and by how much?
Show answer
The first X constrains to Global X, and the second X switches to the box's Local X. A 90 degree rotation around Z turns Local X to point along world Y. The box moves 3 units along world Y (in the positive or negative direction, depending on the rotation direction). With 90 degrees counterclockwise seen from above, Local X points along positive world Y.
Exercise
You have three selected objects with different rotations and press S, X, 2 with Local orientation. Whose axes decide the direction of the X stretch?
Show answer
The active object's axes decide the direction. All selected objects are stretched along that one object's Local X, so objects with a different rotation can scale along a direction that does not match their own length. Switch to Global, or change the active object, if you need a different result.