Sub topic 14
Deform bones and control bones
This chapter assumes you can already create bones in Edit Mode, pose them in Pose Mode, and bind a mesh with the Armature modifier. It also assumes you know what vertex groups are. Here you will learn why a rig usually contains two kinds of bones, how Blender tells them apart, and how to wire them together.
Why split a rig into two roles
In a small rig, one bone does everything. The animator rotates it, and it also moves the mesh. This works for a simple tail or a door. Larger rigs run into three problems:
- The bone that is best for the mesh is not always the bone that is best for the animator. A deforming forearm should sit inside the arm, but an animator wants a handle outside the mesh that is easy to click.
- Features such as IK, stretching, or twist distribution need helper bones that no one should touch.
- Exporting to a game engine should ship only the bones that move vertices, not every handle.
The usual answer is to give each bone one job:
| Role | Purpose | Deforms the mesh? | Animator touches it? |
|---|---|---|---|
| Deform bone | Moves vertices through vertex group weights | Yes | No |
| Control bone | Handle the animator grabs and keyframes | No | Yes |
| Mechanism bone | Hidden helper for IK, stretch, twist | No | No |
The Deform property
Every bone has a Deform checkbox. You find it in the Bone properties tab, under the Deform panel. In Python it is bone.use_deform on bones and edit bones. Two behaviors follow from this flag:
- The Armature modifier only moves vertices for bones with Deform enabled. A vertex group named after a non-deform bone is ignored.
- Automatic weights (Ctrl+P, With Automatic Weights) only creates vertex groups for deform bones. If a bone gets no group, check this flag first.
Most "my bone does nothing" problems come from one of two mismatches. Either the flag is off on a bone that should deform, or the weights sit on a control bone that has Deform off.
The signal path
Control bones do not move the mesh directly. Their motion reaches the deform bones through constraints or parenting, and the deform bones then move the mesh.
Common ways to connect the two layers:
- Copy Transforms on the deform bone, targeting the control bone. This is the most direct link.
- Copy Rotation or Copy Location when you only want part of the motion.
- Parenting the deform bone under the control bone. This works when the control is a simple handle with the same hierarchy as the deform chain.
- IK constraints on a mechanism bone, whose result the deform chain then copies. The IK chapter covers this setup.
Naming conventions
Blender does not require names, but the prefix convention used by Rigify is worth following:
DEF-for deform bones, such asDEF-forearm.L.MCH-for mechanism bones.ORG-for original bones that a generator copies from.- Control bones usually have no prefix, or a
CTRL-prefix in hand-built rigs.
Prefixes let you select all deform bones with a name search and make export filters easy to write. Keep the .L and .R suffixes, because the mirroring tools depend on them.
Building the pair with Python
This script creates a control bone and a deform bone. It turns off Deform on the control and links the two with Copy Transforms. It does not need a mesh.
import bpy
arm_data = bpy.data.armatures.new("DeformDemo")
arm_obj = bpy.data.objects.new("DeformDemoRig", arm_data)
bpy.context.collection.objects.link(arm_obj)
bpy.context.view_layer.objects.active = arm_obj
bpy.ops.object.mode_set(mode='EDIT')
# The control sits beside the future mesh so it is easy to select
ctrl = arm_data.edit_bones.new("CTRL-arm")
ctrl.head = (1, 0, 0)
ctrl.tail = (1, 0, 1)
ctrl.use_deform = False
# The deform bone sits inside the mesh
deform = arm_data.edit_bones.new("DEF-arm")
deform.head = (0, 0, 0)
deform.tail = (0, 0, 1)
deform.use_deform = True
bpy.ops.object.mode_set(mode='OBJECT')
# Constraints live on pose bones
pbone = arm_obj.pose.bones["DEF-arm"]
con = pbone.constraints.new('COPY_TRANSFORMS')
con.target = arm_obj
con.subtarget = "CTRL-arm"
con.owner_space = 'LOCAL'
con.target_space = 'LOCAL'
for bone in arm_data.bones:
print(bone.name, "deform:", bone.use_deform)The two bones start at different places, so the script sets both spaces to Local. In the default World space the deform bone would jump to the control's position. In Local space it copies only the control's change from its rest pose. This only works well when both bones have the same rest orientation. They do here, since both point along Z with the same roll.
Select CTRL-arm in Pose Mode and rotate it. DEF-arm follows. When you bind a mesh, name its vertex group DEF-arm. A group named CTRL-arm would do nothing.
Hiding what the animator should not touch
Once the roles are separate, hide the bones that are not for animation. You can hide individual bones with H in Pose Mode. For a rig of any size, use bone collections. A deform collection and a mechanism collection can be hidden in one click, and a controls collection stays visible. Custom shapes then make the controls easy to pick. Both topics get their own chapters later.
Common errors
- The mesh does not move. The weighted bone has Deform off, or the vertex group name does not match the bone name exactly. Names are case sensitive.
- The mesh moves twice as much as expected. A deform bone is parented to a deforming bone and also copies the same motion through a constraint. The parent's motion is applied twice. Decide whether motion arrives by parenting or by constraint, not both.
- Automatic weights leave a body part unweighted. The nearest bones have Deform off. Enable it on the right bones and run the bind again.
- The deform bone does not follow its control. Constraint influence is 0, the constraint is muted, or the subtarget name is empty. Check the Bone Constraints tab.
- The exported file contains extra bones. The FBX exporter has an Only Deform Bones option. Turn it on to drop controls and mechanism bones. This is only safe if your deform bones do not depend on a non-deform parent for their hierarchy.
Choosing between one layer and two
Use a single layer when the rig is small, will not be exported to an engine, and has no IK or stretch. Use two layers when animators need clear handles, when the rig has IK or twist bones, or when the export must contain only deforming bones. The cost of two layers is more bones to name and constrain, and a constraint chain to debug when something goes wrong.
Exercise
A character's forearm vertex group is named forearm.L. The bone forearm.L has Deform turned off, and a bone DEF-forearm.L has Deform on but no weights. The mesh does not bend with the forearm. What are two ways to fix it?
Show answer
The weights are on a non-deform bone, so the Armature modifier ignores them. Either rename the vertex group to DEF-forearm.L (and keep that bone's Deform on), or turn Deform on for forearm.L. The first is better when forearm.L is meant to be a control, because it keeps the roles separate.
Exercise
In the script above, why are the Copy Transforms spaces set to Local, and what would happen in World space?
Show answer
The two bones have different rest positions. In World space the deform bone would be moved to the control bone's world transform and would jump away from the mesh. In Local space it copies only how far the control has moved from its own rest pose.