Sub topic 8
Painting one bone at a time with selection masking
Weight painting a full character is easier when you work on one bone's weights at a time. This chapter covers how to link the active vertex group to the bone you select, and how to limit where your brush acts. It assumes you can already do these things:
- Bind a mesh with automatic weights.
- Read the blue-to-red weight colors in Weight Paint mode.
- Use the Draw, Blur and Average brushes.
- Know that vertex group names must match bone names.
The problem selection masking solves
An armature-bound mesh has one vertex group per deforming bone. The brush paints into the active vertex group, so you normally pick the group in the Object Data properties list. That works, but you have to read bone names off a list and keep matching them to the part of the body you are looking at. On a rig with 60 bones, the list becomes a bottleneck.
Bone selection masking removes the list from your workflow. You click the bone in the viewport, and the matching vertex group becomes active. Painting is also restricted to the groups of the selected bones, so a stray stroke cannot disturb unrelated weights.
Setting up the mode combination
Bone masking needs two objects in different modes at the same time. The mesh is in Weight Paint mode, and the armature is in Pose Mode.
- Select the armature and switch to Pose Mode.
- Ctrl+click the mesh in the Outliner so it is also selected and active.
- Switch the mesh to Weight Paint mode from the mode dropdown.
- In the Weight Paint header, enable Bone Selection (the bone-shaped mask button).
The armature stays in Pose Mode while the mesh is in Weight Paint mode. If the armature drops back to Object Mode when you switch the mesh, turn off Lock Object Modes in the viewport's Object Mode menu, then repeat the steps.
Selecting bones to choose the active group
With the mask on, click a bone in the viewport. The mesh shows that bone's weight in the usual colors: red where the bone has full influence, blue where it has none. The Vertex Groups list in the Object Data properties updates to highlight the same group name.
Bone clicking has a few useful behaviors:
- Click a bone to select only it. Its group becomes active.
- Shift+click adds bones to the selection. The active group is the last bone you clicked.
- Hidden or covered bones are hard to click. Use the Outliner, or the Bone Collections panel in Armature properties, to reveal and select them.
- Bones with Deform off have no vertex group, so selecting one changes nothing in the mesh. If a bone you click never shows weights, check that it is a deforming bone and that its group exists.
You can also hover over a bone and press Ctrl+click in some configurations, but the plain click is the standard route. Whichever you use, confirm the active group in the list before you paint. A wrong active group is the most common cause of confusing results.
What the mask limits
The mask affects painting in two ways. First, the active group follows the selected bone, as described above. Second, strokes apply only to the groups of selected bones, and unselected bones' groups are left alone. That makes it safe to work on the forearm without touching the upper arm, even where the two influences overlap.
This matters because of normalization. When Auto Normalize is on in the Weight Paint tool settings, painting one group raises or lowers other groups on the same vertices to keep the total at 1.0. Masking narrows which groups the brush can edit directly, but the normalization pass still adjusts the other influences on those vertices to make them sum to 1.0. Expect other bones' weights to shift when you add weight to one bone on a shared vertex.
Combining bone masking with vertex selection
Bone masking and vertex masking solve different problems, and you can use them together. Bone masking answers "which group?", while Vertex Selection answers "which vertices?".
The Weight Paint header has separate mask toggles:
| Mask | Limits painting to | Typical use |
|---|---|---|
| Bone Selection | Groups of the selected bones | Work on one bone without disturbing others |
| Vertex Selection | Vertices selected in Edit Mode | Isolate a patch such as an elbow crease |
| Face Selection | Faces selected in the viewport | Paint a region by faces without leaving Weight Paint mode |
To combine them, select the vertices you want in Edit Mode first. Return to Weight Paint mode, enable Vertex Selection, and keep Bone Selection on. A stroke then changes only the selected bone's weight, and only on the selected vertices. This is the cleanest way to fix a pinched elbow: select the vertices around the joint, select the forearm bone, and blur or draw just there.
A worked example: fixing a collapsing elbow
Suppose the elbow collapses inward when the forearm bends past 90 degrees. Here is how to correct it with masking.
- Enter Pose Mode with the armature selected, rotate the forearm bone to the bad pose, and note which vertices crumple.
- Return the mesh to Weight Paint mode with Bone Selection on.
- Click the upper arm bone. Check whether red extends too far past the elbow. If it does, set the brush to Subtract or Blur and soften that edge.
- Click the forearm bone. Check that its weight rises smoothly from blue above the elbow to red below it, with no hard band.
- Use the Average or Blur brush with low strength (0.2 to 0.3) across the transition. Short, repeated strokes give you more control than one heavy stroke.
- Go back to Pose Mode, pose the bone again, and judge the result. Repeat until the elbow bends cleanly.
Keep the Auto Normalize setting on while you do this. The upper arm and forearm weights then stay complementary across the joint, so the sum cannot drift away from 1.0.
Checking your active group from Python
A script can show what the bone mask sets for you: which vertex group is active. This is useful for confirming that the group you are painting matches the bone you think you selected.
import bpy
obj = bpy.context.active_object # the mesh in Weight Paint mode
active = obj.vertex_groups.active
if active is None:
print("No active vertex group")
else:
print("Active group:", active.name)
# Count vertices that carry a non-zero weight in the active group.
count = 0
for v in obj.data.vertices:
for g in v.groups:
if g.group == active.index and g.weight > 0.0:
count += 1
print("Vertices influenced:", count)To set the active group by name without clicking a bone, assign the index:
import bpy
obj = bpy.context.active_object
obj.vertex_groups.active_index = obj.vertex_groups["forearm.L"].indexReplace forearm.L with a group name that exists on your mesh. A missing name raises a KeyError, which usually means the group was never created or the bone was renamed.
Common problems
- Clicking a bone does nothing. The armature is probably not in Pose Mode, or Lock Object Modes forced it back to Object Mode. Check the mode of each object separately.
- The brush paints the wrong group. Look at the highlighted entry in the Vertex Groups list. If you clicked a bone and then clicked in the list, the list choice wins.
- Weights change on bones you did not select. This is normalization. Auto Normalize rebalances the other groups on shared vertices. Lock those groups with the lock icon in the list if you need them unchanged.
- No color appears for a bone. The bone either has Deform turned off or has no vertex group. Create a group with the exact bone name, or enable Deform in Bone properties.
- You cannot reach a bone behind the mesh. Turn on the armature's In Front option in Viewport Display, or select the bone from the Outliner.
Exercise
You select the forearm bone with Bone Selection on and add weight with the Draw brush. The upper arm's weights also change on some vertices. Why, and how would you stop it?
Show answer
Auto Normalize rebalances other groups on vertices where the forearm and upper arm overlap, so their weights sum to 1.0. The mask only limits which group you paint, not the normalization pass. To keep the upper arm's weights fixed, lock its vertex group with the lock icon in the Vertex Groups list.
Exercise
You want to change only the forearm bone's weights, and only on the vertices around the elbow. Which masks do you enable, and what do you do first?
Show answer
Select the vertices around the elbow in Edit Mode first. Then return to Weight Paint mode and enable both Vertex Selection and Bone Selection, with the armature in Pose Mode and the forearm bone selected. The brush then edits only the forearm group on those vertices.
Exercise
You click a bone and the mesh shows no colors. Name two likely causes.
Show answer
The bone has Deform turned off, or no vertex group exists with the bone's exact name. A less likely cause is that the armature is not in Pose Mode, so the click did not select a pose bone.