Sub topic 15
Clearing Location, Rotation, and Scale
This chapter assumes you can select objects, use G, R, and S with axis constraints, and read the Transform panel (N key in the 3D viewport). It covers the three Clear commands, what "clear" means in each case, and the mistakes that most often follow from confusing clearing with applying.
What clearing does
Clearing resets one part of an object's transform to its default value. It changes the object's own transform properties and leaves the mesh data alone. The vertices stay where they are in the object's local space. Only the object's placement, orientation, or size changes.
The defaults are:
| Command | Shortcut | Resets to |
|---|---|---|
| Clear Location | Alt+G | (0, 0, 0) |
| Clear Rotation | Alt+R | (0, 0, 0) rotation |
| Clear Scale | Alt+S | (1, 1, 1) |
The same commands are in the viewport menu under Object > Clear > Location, Rotation, and Scale. The Clear submenu also has an Origin entry, which is a different operation and is covered later in this chapter.
Clearing works on every selected object, not only the active one. Each object resets to the defaults on its own.
Clearing is not the same as undoing
Alt+G does not return an object to where it was before your last move. It sends the object to the world origin, or to the parent's origin if the object has a parent. If you moved a cube from (4, 0, 0) to (6, 0, 0), Alt+G puts it at (0, 0, 0). Ctrl+Z is what returns it to (4, 0, 0).
This matters when you use clearing to "start over" on an object that was imported at a meaningful position. You lose that position unless you note the values first.
Clearing with a parent
An object's Location, Rotation, and Scale fields in the Transform panel are relative to its parent. If the object has no parent, they are relative to the world.
When you clear location on a child object, it moves to its parent's origin, which is the point the parent's own location describes. It does not move to the world origin. The same holds for rotation and scale, which become relative to the parent's orientation and size.
The resulting position can look wrong. The child can jump and appear to snap onto its parent. That is the expected result, because the child's local offset has become zero.
If the parent was created with a parent inverse matrix (this happens when you parent with Ctrl+P), the child's world position includes a hidden offset. Clearing the child's values then does not always land it on the parent's origin. The Clear Parent Inverse command (Object > Parent > Clear Parent Inverse) removes that hidden offset. Use it only when you want the child's panel values to describe its true offset.
Clearing and the Delta transforms
Each object also has Delta Transform values, found in the Object properties tab under Transform > Delta Transform. These are an extra offset added on top of the normal transform. Alt+G, Alt+R, and Alt+S do not touch them.
If an object stays away from the origin after you clear its location, check the Delta Transform. This is a rare cause, but it is hard to spot because the main Transform panel shows zeros.
Rotation modes and clearing
Alt+R resets rotation in whatever rotation mode the object uses. For Euler modes (XYZ, XZY, and so on), it sets the three angles to 0. For Quaternion mode, it sets the values to (1, 0, 0, 0), which is the identity quaternion, meaning no rotation. For Axis Angle mode, it sets the angle to 0.
The visual result is always the same: the object has no rotation relative to its parent.
Locked channels
If you lock a transform channel with the padlock icon in the Transform panel, that value is protected from G, R, S, and gizmo edits. Clearing respects the lock in the same way. A locked Z location stays put when you press Alt+G, while X and Y reset.
Locked values can make the commands seem broken. If Alt+G leaves part of the position unchanged, check the padlocks.
Clearing versus applying
Clearing and applying both bring transform values back to defaults, but they do opposite things to the mesh.
- Clear changes how the object sits in the scene. The mesh data is untouched, so the object visibly moves, turns, or resizes.
- Apply (Ctrl+A) bakes the transform into the mesh data. The vertices are rewritten in new positions, the transform values reset, and the object looks exactly the same as before.
Suppose a cube is scaled to (2, 2, 2).
- After Alt+S, the scale is (1, 1, 1) and the cube is visibly half as large.
- After Ctrl+A > Scale, the scale is (1, 1, 1) and the cube still looks the same, because its vertices were moved outward to match.
Choose clearing when you want the object to return to a neutral placement. Choose applying when you want to keep the shape and make the transform values neutral, for example before adding a Bevel modifier or exporting to a game engine.
Clearing the origin
Object > Clear > Origin is a separate command. It applies to parented objects and children. It moves the origin of the selected parent's children... in practice it is rarely needed, and it is easy to confuse with the "Set Origin" menu. If you want to move the point an object pivots around, use Object > Set Origin instead.
Clearing from Python
You can reset the values directly, which does not depend on selection or on the viewport context:
import bpy
from mathutils import Vector
obj = bpy.context.active_object
obj.location = (0.0, 0.0, 0.0)
obj.rotation_euler = (0.0, 0.0, 0.0)
obj.scale = Vector((1.0, 1.0, 1.0))The operator versions are also available, and they act on all selected objects:
import bpy
bpy.ops.object.location_clear(clear_delta=False)
bpy.ops.object.rotation_clear(clear_delta=False)
bpy.ops.object.scale_clear(clear_delta=False)Setting clear_delta=True also clears the Delta Transform values, which the keyboard shortcuts do not do.
If the object uses quaternion rotation, setting rotation_euler has no visible effect. Set rotation_quaternion = (1, 0, 0, 0) instead, or use the operator, which handles the mode for you.
Common errors
- Object jumps to an unexpected place. It has a parent, or a hidden Delta Transform, or a parent inverse matrix. Check the Relations and Delta Transform panels.
- Scale is cleared but the object looks wrong in a modifier. You cleared scale when you meant to apply it. Modifiers such as Bevel and Array depend on the scale, so use Ctrl+A.
- Alt+G does nothing. The object may be locked, or the pointer may not be over the 3D viewport.
- Cleared the wrong objects. Clearing acts on all selected objects. Check the selection first.
Exercise
A cube has location (3, 0, 0), rotation 45 degrees on Z, and scale (2, 2, 2). You press Alt+S and then Ctrl+A > Rotation. What are the cube's location, rotation, and scale values afterward, and does the cube's size change at the Alt+S step?
Show answer
Location stays (3, 0, 0). Alt+S sets scale to (1, 1, 1), so the cube becomes visibly half as large at that step. Ctrl+A > Rotation then bakes the 45 degree turn into the mesh and resets rotation to (0, 0, 0). The final values are location (3, 0, 0), rotation (0, 0, 0), scale (1, 1, 1). The cube still looks turned 45 degrees, but only because its vertices now sit in rotated positions.
Exercise
A child object is parented to an empty at (5, 5, 0). You select only the child and press Alt+G. Where does the child end up, and why?
Show answer
The child moves to the empty's origin at (5, 5, 0) in world space, not to the world origin. Its Location field is relative to the parent, and clearing sets that offset to zero. If the child was parented with Ctrl+P, a parent inverse matrix may leave it offset, and Object > Parent > Clear Parent Inverse removes that.