Sub topic 15
Bone Roll and Local Axes
Prerequisites
Assume you can create an armature, switch between Edit Mode and Pose Mode, and understand parent and child bones. This chapter focuses on bone orientation, not on building a complete character rig.
What bone roll controls
A bone has a head, a tail, and a local coordinate system. The local Y axis usually points from the head toward the tail. The local X and Z axes point across the bone. Bone roll rotates these sideways axes around the bone's length.
Roll does not change the bone's endpoints or its visible length. It changes how the bone interprets local rotations. This affects:
- Euler rotation values in Pose Mode.
- The direction of an IK solver's bend.
- Constraint axes, such as Copy Rotation and Limit Rotation.
- Mirrored bones and left-right rig behavior.
- Custom control shapes aligned to a bone.
Two bones can have identical head and tail positions but different roll values. They will look the same in the viewport until a local-axis operation uses them.
Viewing and changing local axes
Enable Armature Properties > Viewport Display > Axes to display each bone's local axes. You can also select a bone in Edit Mode and use the sidebar's Item panel to inspect or edit its roll.
In Edit Mode, Blender stores the orientation on an edit bone. A practical workflow is:
- Build the bone chain and place the joints.
- Select related bones, such as both upper arms.
- Align their rolls consistently.
- Inspect the axes in the viewport.
- Test the rig in Pose Mode with the constraints you plan to use.
Use Recalculate Roll when several bones should share a predictable orientation. Choose a reference axis, then check the result manually. Automatic recalculation is useful, but it cannot know the intended elbow or knee direction for every character.
| Operation | Changes endpoints? | Changes local axes? | Typical use |
|---|---|---|---|
| Move head or tail | Yes | Often | Fit the skeleton |
| Rotate a bone around its length | No | Yes | Set roll |
| Pose a bone | No rest-pose change | Uses axes | Animate |
| Recalculate roll | No | Yes | Normalize a chain |
import bpy
import math
# Create a small armature
data = bpy.data.armatures.new("RollDemo")
obj = bpy.data.objects.new("RollDemo", data)
bpy.context.collection.objects.link(obj)
bpy.context.view_layer.objects.active = obj
obj.select_set(True)
bpy.ops.object.mode_set(mode="EDIT")
bone = data.edit_bones.new("forearm")
bone.head = (0, 0, 0)
bone.tail = (0, 0, 2)
# Roll rotates the local X and Z axes around local Y.
bone.roll = math.radians(30)
bpy.ops.object.mode_set(mode="OBJECT")Common errors and trade-offs
A wrong roll often appears as a constraint that bends sideways or as Euler rotations that use unexpected channels. Fix the bone's rest orientation before adding animation. Changing roll later can alter existing poses and constraint results.
For predictable rigs, prefer consistent axes over visually convenient individual rotations. A custom roll may be correct when the character's anatomy requires a specific bend plane. Always test mirrored limbs and IK targets after changing roll.
Exercise
Two mirrored forearm bones have the same length, but their IK chains bend in different directions. What should you inspect first?
Show answer
Inspect and compare their local axes and roll values in Edit Mode. Correct the roll before changing IK settings.