Sub topic 9
Parenting with Automatic Weights
This chapter assumes you can select objects in the 3D viewport, switch between Object, Edit and Pose modes, and build a small bone hierarchy. It also assumes you know what a vertex group is. Automatic weights are the fastest way to bind a mesh to an armature. They also fail in predictable ways, and knowing why saves a lot of time.
What automatic weights do
When you bind a mesh to an armature, each vertex needs to know which bones move it and by how much. That information lives in vertex groups, one group per deforming bone. Each vertex has a weight between 0 and 1 in each group.
Automatic weights compute those numbers for you. Blender looks at the rest pose of the armature and the shape of the mesh, then assigns each vertex a weight based on its distance to nearby bones. It uses a method called bone heat. Each deforming bone acts as a heat source, and the heat diffuses across the mesh surface. Vertices that receive more heat from a bone get a higher weight for that bone.
The command does three things in one step:
- It parents the mesh object to the armature object.
- It creates one vertex group for each deforming bone, named after the bone.
- It adds an Armature modifier that points to the armature object.
The result is the same setup you would build by hand, which the scripting chapter covers. The difference is that the weights are filled in for you.
Binding with automatic weights
- In Object Mode, click the mesh first.
- Shift-click the armature so it is the active object. The mesh stays selected.
- Press Ctrl+P and choose With Automatic Weights.
The order matters. The armature must be the active object, and the mesh must be selected. If you reverse the order, Blender offers different options or parents the armature to the mesh.
Switch to Pose Mode, select a bone and rotate it. The surrounding vertices should follow. If they do, the bind worked.
Other parenting options
The Ctrl+P menu offers several choices for an armature parent. They behave differently.
| Option | Vertex groups | Weights | Typical use |
|---|---|---|---|
| With Empty Groups | Created for each deform bone | All zero | You plan to paint every weight yourself |
| With Automatic Weights | Created for each deform bone | Calculated by bone heat | Most characters, as a starting point |
| With Envelope Weights | Created for each deform bone | Based on bone envelope size | Simple, rough binds |
| Armature Deform | None created | None | Mesh already has matching vertex groups |
| Bone | None | None | Rigid object that follows one bone |
Use With Empty Groups when automatic weights keep failing and you would rather paint from a clean slate. Use Armature Deform when you have already built vertex groups with matching names.
Which bones take part
Only bones that have Deform enabled receive vertex groups. In Bone properties, the Deform checkbox controls this. Control bones, such as IK targets, should have it turned off. If you leave Deform on for a control bone, it gets a vertex group and can pull vertices where you do not want them.
Bones in hidden bone collections are still used. Blender looks at the Deform flag, not visibility. Check the flag before you bind, because rebinding later means clearing or repainting weights.
The bind pose matters
Automatic weights are calculated from the armature as it is at the moment you bind. Two conditions follow from that.
- Put the armature in its rest pose first. If you bind while a bone is rotated, the weights are computed from the distorted pose and the result will look wrong in the rest state.
- Apply scale on the mesh and the armature before binding. Unapplied scale can distort the distance calculation and the deformation.
Press Ctrl+A in Object Mode and choose Scale to apply it. Also confirm the bones sit inside the volume of the mesh. A bone outside the mesh gives weak or erratic heat.
Common failures
The most frequent message is "Bone Heat Weighting: failed to find solution for one or more bones." Blender could not diffuse heat for at least one bone. Typical causes are:
- The mesh has non-manifold geometry, such as holes, loose vertices, or edges shared by more than two faces.
- The mesh has overlapping or duplicated vertices.
- The mesh has zero-area faces or extremely thin faces.
- A bone is placed outside the mesh or in a space the mesh surface does not enclose.
- Scale or rotation has not been applied.
Fix the mesh first. In Edit Mode, merge vertices by distance and check for non-manifold geometry with Select, Select All by Trait, Non Manifold. If the problem remains, bind with empty groups and paint the weights.
A second failure is bleed between nearby limbs. Bone heat flows across the surface, so two parts close together can share weights. Fingers pressed against each other, or an arm resting against a torso, are the usual cases. The mesh may bend the wrong part when you pose. Pose the rig while it is in rest position with arms and fingers apart. Many character meshes are modeled in a T-pose or A-pose for this reason.
A third failure is mesh made of separate pieces. Each piece is a separate heat domain, so a closed piece such as an eyeball or a helmet might get weights from no bone. Use bone parenting for rigid parts instead.
Checking and refining the result
Automatic weights are a starting point. After binding, enter Weight Paint Mode with the armature in Pose Mode, which lets you select a bone and see its weights. Check the joints: elbows, knees, shoulders and hips. Look for vertices that show no weight and for vertices where weights from distant bones overlap. The next chapter covers painting in detail.
You can also normalize results with Weights, Normalize All in Weight Paint Mode. The Armature modifier blends bones using weights, so totals that differ from 1 can cause shrinking or stretching.
Re-running the bind
You can bind again, but be careful. Running Ctrl+P a second time on a mesh that already has groups updates groups with the same names. This can overwrite weights you painted. To start over cleanly, delete the vertex groups first, or work on a duplicate of the mesh.
Exercise
You select the armature, then Shift-click the mesh so the mesh is active, and press Ctrl+P. You do not get the "With Automatic Weights" option you expected. What went wrong, and what is the correct selection order?
Show answer
The armature must be the active object, and the mesh must be selected. Select the mesh first, then Shift-click the armature last so it becomes active. Then Ctrl+P offers With Automatic Weights.
Exercise
Blender reports "Bone Heat Weighting: failed to find solution for one or more bones." Name three things you would check, and one fallback if they do not fix it.
Show answer
Check for non-manifold geometry, duplicate or overlapping vertices, and unapplied scale or bones lying outside the mesh. As a fallback, bind with Empty Groups and paint the weights by hand.