Sub topic 1
How a Mesh Follows an Armature
Prerequisites
This chapter assumes that you can navigate Blender’s 3D Viewport, switch between Object, Edit, and Pose Mode, and select and transform objects. You also need a finished mesh with reasonable topology around its joints and an armature containing bones.
The deformation chain
An armature is a control structure made of bones. A mesh is the visible surface that you want to animate. When a bone moves in Pose Mode, Blender calculates new positions for the mesh vertices influenced by that bone.
The connection uses three parts:
- A bone provides a transform, such as rotation or translation.
- A vertex group stores which mesh vertices belong to that bone.
- A weight stores how strongly the bone affects each vertex.
A weight is a number from 0 to 1. A weight of 1 means full influence. A weight of 0 means no influence. Most joint vertices receive partial weights from several bones, so they bend instead of breaking into separate pieces.
For example, a vertex near an elbow might have these influences:
| Bone | Weight | Result |
|---|---|---|
| UpperArm | 0.65 | The vertex follows the upper arm strongly |
| Forearm | 0.35 | The vertex also follows the forearm |
The final vertex position is a weighted blend of the transformations contributed by its influencing bones.
Why names and modifiers matter
Blender connects a deforming bone to a vertex group by name. If a bone is named UpperArm.L, the mesh should contain a vertex group named UpperArm.L. The group contains the weights for that bone.
The mesh also needs an Armature modifier. A modifier is an operation Blender applies to an object without permanently changing its base data. The Armature modifier reads the armature’s current pose and the mesh’s vertex groups, then calculates the displayed deformation.
The usual relationship looks like this:
- The armature is posed.
- The Armature modifier finds each vertex group whose name matches a deforming bone.
- Blender reads the weights assigned to each vertex.
- Blender blends the bone transformations.
- The modifier displays the resulting mesh shape.
A minimal setup
You can create the modifier manually with Blender’s Python API. Run this in Blender’s Scripting workspace after creating objects named Body and Armature.
import bpy
mesh_obj = bpy.data.objects["Body"]
arm_obj = bpy.data.objects["Armature"]
# Add the operation that deforms Body from Armature.
modifier = mesh_obj.modifiers.new(name="Armature", type="ARMATURE")
modifier.object = arm_obj
print(f"{mesh_obj.name} now uses {arm_obj.name} for deformation")This code does not create vertex groups or weights. It only creates the link that allows Blender to use them. Parenting with automatic weights creates this modifier and also generates initial groups and weights.
What happens at a joint
A rigid assignment gives each vertex to one bone. This can work for hard mechanical parts, but it usually produces a sharp seam on a character. Blended assignments produce smoother motion. Vertices near the center of a joint often share influence between the neighboring bones. Vertices farther along a limb usually receive a stronger weight from one bone.
Weight painting changes these numbers rather than changing the armature itself. You will use the next chapters to create, inspect, and correct those values.
Exercise
What three pieces must work together for a posed bone to deform a mesh?
Show answer
A deforming bone, a matching vertex group containing weights, and an Armature modifier that uses the armature.