Sub topic 4
The Armature modifier
Assume you already know Blender’s Object, Edit, and Pose modes. You also need a finished mesh, an armature with bones, and basic knowledge of object transforms. This chapter focuses on the modifier that makes a mesh respond to an armature. It does not create good weights by itself.
What the modifier does
An Armature modifier deforms a mesh according to the movement of an armature. The modifier stores a reference to the armature object. During evaluation, Blender checks the mesh’s vertex groups and uses the groups whose names match deforming bone names.
A vertex group is a named set of mesh vertices with weights from 0 to 1. A weight of 0 means that a bone has no influence. A weight of 1 means full influence. Intermediate values blend the movement with other bones.
The Armature modifier uses this relationship:
| Item | Required relationship |
|---|---|
| Armature object | The modifier’s object field points to it |
| Deforming bone | Its Deform option is enabled |
| Vertex group | Its name matches the bone name |
| Vertex weights | They control how strongly each bone moves the vertex |
For example, a group named UpperArm.L is used by a bone named UpperArm.L. If the names differ, that group does not influence the mesh through that bone.
Modifier evaluation
The modifier calculates the final position of each vertex from the poses of the bones that affect it. A simplified model is:
final position = sum of (bone movement × vertex weight)A vertex may belong to several groups. If a shoulder vertex has a weight of 0.6 for one bone and 0.4 for another, it follows a blend of both bone movements. This blending creates smooth bends at joints.
The Armature modifier has an object field and several options. The object field is the important connection. The Vertex Groups option tells Blender to use groups named after bones. The Bone Envelopes option uses distances from bones instead. Most character rigs use vertex groups because they provide precise control.
Modifier order also matters. A Subdivision Surface modifier before the Armature modifier can give the armature more geometry to deform. A modifier after the Armature modifier processes the already-posed shape. Check the order when a deformation looks unexpected.
Adding the modifier manually
Parenting a mesh to an armature usually creates the modifier for you. You can also add it directly when repairing a file or building a scripted setup.
import bpy
mesh_obj = bpy.data.objects["Body"]
arm_obj = bpy.data.objects["Armature"]
modifier = mesh_obj.modifiers.new(
name="Armature",
type="ARMATURE",
)
modifier.object = arm_obj
print(f"Using {arm_obj.name} to deform {mesh_obj.name}")This code does not create vertex groups or weights. The mesh can have the correct modifier and still remain rigid if no matching groups contain weights.
Check the connection
Select the mesh and open the Modifiers tab. Confirm that:
- An Armature modifier exists.
- Its Object field contains the intended armature.
- The modifier is enabled in the viewport and render.
- The modifier appears in the intended stack position.
- The armature bones that should deform have Deform enabled.
Exercise
A mesh has an Armature modifier pointing to the correct armature, but rotating a bone does nothing. Which three connections should you inspect first?
Show answer
Check that the bone has Deform enabled, that a vertex group has the exact same name as the bone, and that the group contains non-zero weights for the affected vertices.