Sub topic 16
Object Origin and Applying Transforms
This chapter covers the object origin, the ways to move it, and what Apply does to an object's transforms. It assumes you can select objects, use G, R, and S with axis constraints, read the Transform panel, and choose a pivot point. It also assumes you know what clearing a transform does.
What the origin is
Every object has an origin, a single point that anchors the object in the scene. The Transform panel's Location values describe where the origin sits in world space. Rotation and scale happen around the origin when the pivot point is Median Point (with one object selected) or Individual Origins.
In Object Mode, the origin appears as a small orange dot on the selected object. The origin does not have to be inside the mesh. A newly added object has its origin at its geometry center, but imported models and edited meshes often have it elsewhere, such as at the world center.
The origin matters for three reasons:
- It is the pivot for rotation and scale in most setups.
- Parenting, modifiers such as Mirror and Array, and constraints use it as a reference.
- Its position determines what "Location 0, 0, 0" means for the object.
Object transforms versus mesh data
Blender stores two separate things for a mesh object:
- Object transforms: location, rotation, and scale. These live on the object and are what the Transform panel shows.
- Mesh data: the vertex positions, stored relative to the origin.
The final position of a vertex in the world is the vertex position, scaled, rotated, and then moved by the object transform. Moving the origin or applying a transform changes how that work is divided between the two. The mesh looks the same on screen afterward, but the stored numbers change.
Moving the origin
There are two common approaches.
Set Origin menu
With the object selected, choose Object > Set Origin. This menu moves the origin and keeps the mesh in place visually, which means Blender shifts the mesh data in the opposite direction. The options are:
| Option | Result |
|---|---|
| Geometry to Origin | Moves the mesh so its center sits on the origin. The origin stays put. |
| Origin to Geometry | Moves the origin to the center of the mesh. The mesh stays put. |
| Origin to 3D Cursor | Moves the origin to the 3D Cursor. The mesh stays put. |
| Origin to Center of Mass (Surface) | Uses the surface area to find the center. |
| Origin to Center of Mass (Volume) | Uses the volume to find the center. |
Geometry to Origin is the only option that moves the mesh. The others move the origin.
For Origin to Geometry, the Center setting in the operator panel chooses between Median Center and Bounds Center. Median Center averages the vertex positions, so dense areas pull it. Bounds Center uses the middle of the bounding box.
The 3D Cursor workflow
A reliable way to put an origin at an exact point is:
- Place the 3D Cursor where you want the origin. In Edit Mode, select a vertex and press Shift+S, then choose Cursor to Selected. You can also type values in the View tab of the sidebar.
- Return to Object Mode.
- Choose Object > Set Origin > Origin to 3D Cursor.
This is how you put the origin at a door hinge or at the base of a lamp so the object rotates correctly.
Affect Only Origins
There is a second way to move an origin. Under Options at the bottom of the Tool Settings or the viewport header's pop-up, enable Affect Only > Origins. Now G, R, and S move or transform only the origin and leave the mesh where it is. Snapping works too, so you can snap the origin to a vertex. Turn the option off when you finish, or later transforms will seem to do nothing to the mesh.
Applying transforms
Apply takes the object's location, rotation, or scale and bakes it into the mesh data. Afterward the object transform is reset to its identity value (location 0, rotation 0, scale 1) and the mesh looks the same.
Open it with Object > Apply or Ctrl+A. The menu offers:
| Option | Effect |
|---|---|
| Location | Bakes location into the mesh and moves the origin to the world origin. |
| Rotation | Bakes rotation into the mesh and sets rotation to 0. |
| Scale | Bakes scale into the mesh and sets scale to 1. |
| All Transforms | Does all three. |
| Rotation & Scale | Does both, leaving location unchanged. |
The Python call from the topic does the same thing as the Ctrl+A menu:
import bpy
obj = bpy.context.active_object
bpy.ops.object.transform_apply(location=False, rotation=True, scale=True)Here location=False leaves the position alone, and the two True values bake rotation and scale. The operator acts on the selected objects, so check your selection before calling it.
Why apply scale
Unapplied scale is the most common source of surprising behavior. Suppose you scale a cube to (2, 2, 2) in Object Mode and leave it. The mesh data still describes a cube with 1 m sides, and Blender multiplies by 2 each time it draws or evaluates the object. Several tools see only the raw mesh data, or behave differently when scale is not 1:
- Bevel and Solidify modifiers compute their width in local mesh space, so a bevel of 0.1 looks twice as large on an object scaled by 2. With non-uniform scale, the effect is stretched.
- Array and Mirror use object-space distances, so offsets can be off.
- Physics and collision shapes can use inconsistent sizes.
- Export to game engines or other tools often expects scale 1.
- Normals and lighting of non-uniformly scaled objects can shade strangely when tools compare against unscaled data.
For these reasons, applying scale (and usually rotation) after you finish sizing an object is a common habit. Check the Transform panel for scale values other than 1 when a modifier looks wrong.
Worked example
Start with the default cube. Press S, then X, then type 3 and press Enter, so the Scale values read (3, 1, 1). The cube is now a long box. Add a Bevel modifier and you will see that the bevel is stretched along X. Now:
- Press Ctrl+A and choose Scale.
- The Scale values return to
(1, 1, 1)and the box keeps its shape. - The bevel now looks even on all sides, because the mesh data itself is 6 m long.
In Python, the same sequence looks like this:
import bpy
bpy.ops.object.select_all(action='DESELECT')
obj = bpy.data.objects.get('Cube')
if obj is not None:
obj.select_set(True)
bpy.context.view_layer.objects.active = obj
obj.scale = (3.0, 1.0, 1.0)
bpy.ops.object.transform_apply(location=False, rotation=False, scale=True)
print(obj.scale)The printed scale is (1.0, 1.0, 1.0).
Edge cases and errors
- Multi-user data. If several objects share one mesh (for example after Alt+D linked duplicates), Blender refuses to apply a transform with the message "Cannot apply to a multi user." Use Object > Relations > Make Single User > Object & Data first, or enable the Isolate Multi User Data option on Apply.
- Negative scale. A mirrored object has a negative scale. Applying it flips the mesh and can leave normals pointing inward. In Edit Mode, select all and use Mesh > Normals > Recalculate Outside (Shift+N).
- Parented objects. Applying a parent's scale changes how its children appear if they are not adjusted. Children keep their own transforms relative to the parent, so they may shift. Blender offers Apply Properties and, for parents, the related children can need manual cleanup.
- Modifiers and shape keys. Objects with shape keys cannot have scale applied in the usual way, and Blender reports an error. Apply or remove the shape keys first, or work in the shape key data.
- Applying location. Applying location moves the origin to the world origin. This is rarely what you want for an object that will be animated or moved later, because Location then reads 0 while the mesh sits far away.
- Rotation after apply. Rotating again after applying is fine. Apply only resets the stored values. It does not lock anything.
Summary of when to use each tool
| Goal | Tool |
|---|---|
| Change the rotation or scale pivot of one object | Set Origin or Affect Only Origins |
| Put the origin at an exact vertex | Cursor to Selected, then Origin to 3D Cursor |
| Make Scale read 1 without changing the shape | Ctrl+A, Scale |
| Reset the object's values and move it back | Clear Transform (Alt+G, Alt+R, Alt+S) |
Clear Transform and Apply are different. Clear resets the value and the mesh visibly moves, rotates, or resizes. Apply resets the value and the mesh looks identical.
Exercise
A cube has Scale (2, 2, 2) and a Solidify modifier with thickness 0.1. The walls look 0.2 thick in the viewport. What do you do so the thickness matches the number, and what do the Scale values read afterward?
Show answer
Select the cube and press Ctrl+A, then choose Scale (in Python, bpy.ops.object.transform_apply(location=False, rotation=False, scale=True)). Scale becomes (1, 1, 1), the mesh data is now twice as large, and the Solidify thickness of 0.1 produces walls that are 0.1 thick.
Exercise
You want a door to swing around its hinge edge. The origin is at the center of the door. Give two ways to move the origin to the hinge without moving the door visually.
Show answer
First way: in Edit Mode select a hinge vertex, press Shift+S and choose Cursor to Selected, return to Object Mode, and use Object > Set Origin > Origin to 3D Cursor. Second way: enable Affect Only > Origins, move the origin (with vertex snapping if needed) to the hinge, then turn the option off.