Sub topic 5
Binding with Automatic Weights
Assume you have a finished mesh, a basic armature, and know how to switch between Object, Edit, and Pose Mode. The mesh should have sensible topology around joints, and the armature should already be positioned inside the character.
Binding connects a mesh to an armature so that posing the bones deforms the mesh. With automatic weights, Blender creates this connection and estimates how strongly each bone should influence each vertex.
Prepare the objects
Before binding, check these conditions:
- The mesh and armature are separate objects.
- The armature is inside the mesh and has the correct rest pose.
- Bones that should deform the mesh have their Deform option enabled.
- The mesh and armature have applied scale and rotation.
- You are in Object Mode.
- The mesh does not already have an incorrect Armature modifier or old vertex groups.
Apply transforms when needed:
- Select the mesh.
- Press
Ctrl+Aand choose Rotation & Scale. - Select the armature.
- Press
Ctrl+Aand choose Rotation & Scale.
Applying transforms makes Blender calculate distances and bone influence from the objects' actual dimensions. Unapplied scale is a common cause of poor automatic weights.
Parent with automatic weights
The selection order matters:
- Select the mesh.
- Shift-select the armature so it becomes the active object.
- Press
Ctrl+P. - Choose Armature Deform > With Automatic Weights.
The armature must be active when you open the parenting menu. Blender then performs several operations:
- It adds an Armature modifier to the mesh.
- It creates vertex groups named after deforming bones.
- It assigns calculated weights to the mesh vertices.
- It parents the mesh object to the armature object.
A vertex group is a named collection of mesh vertices. Each vertex can have a weight from 0.0 to 1.0 for a particular bone. A weight of 1.0 means strong influence, while 0.0 means no influence.
The Armature modifier reads these groups during deformation. For example, a group named upper_arm.L affects vertices through the bone with the same name. Bone and vertex-group names must match.
import bpy
mesh_obj = bpy.data.objects["Body"]
arm_obj = bpy.data.objects["Armature"]
# Select the mesh first, then make the armature active.
bpy.ops.object.select_all(action="DESELECT")
mesh_obj.select_set(True)
arm_obj.select_set(True)
bpy.context.view_layer.objects.active = arm_obj
# Equivalent to Ctrl+P > Armature Deform > With Automatic Weights.
bpy.ops.object.parent_set(type="ARMATURE_AUTO")After binding, select the armature, enter Pose Mode, and rotate a test bone. Undo the test pose or return to the rest pose before continuing.
Read the first result
Automatic weights are an estimate, not a finished skinning solution. They usually work well for clean, separated limbs, but can spread through thin parts or nearby geometry. Inspect elbows, shoulders, hips, fingers, and areas where body parts overlap.
| Result | Likely cause | Next action |
|---|---|---|
| Mesh does not move | Missing modifier or incorrect parenting | Check the Armature modifier and its target |
| Entire mesh moves with one bone | Weights are missing or overly broad | Inspect vertex groups in Weight Paint mode |
| A nearby limb bends too | Automatic influence crossed a thin gap | Mask the bone and correct its weights |
If Blender reports that automatic weights failed, check for non-manifold geometry, intersecting parts, very thin surfaces, unapplied transforms, or an armature that is outside the mesh. Fix the geometry or transforms, then remove the failed binding and try again.
Exercise
Which object must be active when you choose Armature Deform > With Automatic Weights, and what does Blender create?
Show answer
The armature must be active. Blender creates an Armature modifier, bone-named vertex groups, and initial vertex weights on the mesh.