Sub topic 7
Painting weights with brushes
This chapter assumes you have already bound a mesh with automatic weights and can switch into Weight Paint mode. It covers the brushes you use to correct the result, the settings that control them, and a repeatable way to work. You should know that a vertex group weight runs from 0.0 (no influence) to 1.0 (full influence), and that the viewport shows it as a color ramp from blue to red.
What a weight brush changes
A weight brush edits the weight of the active vertex group, one stamp at a time. Each stamp affects the vertices under the brush circle. The brush cannot move vertices. It only changes numbers in a vertex group, and the Armature modifier turns those numbers into deformation when you pose the rig.
The active group is the one highlighted in the Vertex Groups list of the Object Data properties. Every stroke goes into that group, so a stroke made with the wrong group active edits the wrong bone's influence. Check the list before you paint.
If Auto Normalize is off, painting one group does not change the others. If it is on, Blender rescales the other deforming groups so each vertex still totals 1.0. The normalization chapter covers that in detail. For now, check the setting before you start, because it changes what a stroke does.
The core brushes
Blender provides several weight brushes as tools in the toolbar. Four do most of the work.
| Brush | What it does | Typical use |
|---|---|---|
| Draw | Moves the weight toward the Weight value, using the blend mode | Setting an area to a known value, such as 1.0 on a forearm |
| Blur | Mixes each vertex with its neighbors | Softening hard transitions at joints |
| Average | Pulls vertices toward the average weight under the brush, or toward a sampled weight | Flattening noisy patches, or matching the weight of a vertex you pick |
| Smear | Drags existing weights along the stroke direction | Pushing a weight boundary along the surface, for example sliding an elbow transition |
Draw is the only brush that applies the Weight slider. Blur and Smear work from the weights that are already there, so they cannot add influence where none exists. If a region has weight 0.0 in the group, Blur only helps once a neighboring vertex has some weight to spread.
Two other toolbar entries are useful alongside the brushes:
- Sample Weight reads the weight under the cursor and loads it into the brush Weight value. This lets you match a weight you already like.
- Gradient drags a linear or radial falloff between two points. It is fast for long, smooth transitions along a limb.
Settings that shape every stroke
The tool settings at the top of the viewport and the Tool tab in the properties editor control how a brush behaves.
- Weight is the target value for Draw. It is a number from 0.0 to 1.0.
- Radius is the size of the brush circle. In the viewport, press
Fand move the mouse to resize it. - Strength is how much of the target each stamp applies. Press
Shift+Fand move the mouse to change it. A low strength builds up gradually as you pass over the same area. - Falloff is the curve that fades the brush toward its edge. A smooth falloff leaves soft borders. A constant falloff leaves a hard disc.
- Front Faces Only limits the brush to vertices facing the camera. Turn it off when you need to paint through to the far side of a thin part such as an ear or a cape.
- X-Mirror (in the Symmetry options) repeats each stroke across the X axis. It needs symmetric vertex group names such as
Arm.LandArm.R, and a symmetric mesh. Mirroring is covered in its own chapter.
A common mistake is to set Strength to 1.0 and Weight to 1.0 and drag across a joint. One stroke then sets full influence, with no gradual transition, and the joint looks creased when posed. Start with Strength between 0.1 and 0.3 and build up.
Blend modes
The blend mode decides how a stamp combines the brush Weight with the existing weight. It applies to Draw.
| Mode | Effect on the existing weight |
|---|---|
| Mix | Blends toward the brush Weight. The default and the most predictable |
| Add | Adds the brush weight on top, up to 1.0 |
| Subtract | Removes the brush weight, down to 0.0 |
| Multiply | Scales the existing weight by the brush weight |
| Lighten | Replaces only if the brush weight is higher |
| Darken | Replaces only if the brush weight is lower |
Use Mix with Weight 1.0 to bring an area up to full influence, and Mix with Weight 0.0 to clear it. Use Add and Subtract for gentle nudges, such as raising a shoulder weight a little at a time. Lighten and Darken are useful when you want to avoid undoing work. Lighten with Weight 0.5 raises only the vertices below 0.5 and leaves higher ones alone.
A working method
Painting at random leads to lumpy weights. A reliable order follows the structure of the rig.
- Pick a bone and its group. Paint one group at a time.
- Set the big shapes first. Use Draw with Mix, a large radius and Weight 1.0 to fill the area the bone should fully control, and 0.0 to clear areas it should not touch.
- Soften the borders. Switch to Blur with a low strength and stroke across the transition zone.
- Pose the rig and look. Rotate the bone to an extreme pose and check the joint. Go back to Weight Paint mode and correct what you see.
- Move to the next bone and repeat.
The diagram shows how to choose a brush when you see a particular problem.
Reading the result as you paint
The weight colors only show the active group. Blue is 0.0, green is about 0.5, and red is 1.0. A vertex that looks blue in the active group can still be fully deformed by a different group, so a blue area does not mean the vertex will stay still. Switch the active group, or use bone selection masking (next chapter), to see the other contributions.
Two display options help here. Turn on Zero Weights in the overlay options to mark vertices with no weight in the active group, and use Wireframe or Show Weights Contours overlays to see where the gradients change. Black marks, for example, show vertices that belong to the group with weight 0.0 under the Zero Weights setting, and these differ from vertices that are not in the group at all.
Common errors with brushes
- Nothing happens when you paint. The active object may not be the mesh, or the active group may be locked. A locked group shows a lock icon in the Vertex Groups list. Unlock it, or select the correct group.
- The wrong bone moves the area. You painted with another group active. Look at the group name, then check that it matches a deforming bone.
- Weights drift after you paint. Auto Normalize rescaled the other groups. This is expected, but it can surprise you when the total of the other groups was already correct. Check the other bones after a large stroke.
- Blur makes a joint worse. Blur averages across the whole brush radius. A large radius can leak weight into a neighboring limb. Reduce Radius, or use Draw to restore the lost area and blur again with a smaller brush.
- Paint appears on the wrong side. Front Faces Only is on and you are looking at the wrong surface, or X-Mirror is on while the mesh is not symmetric.
Setting brush values from Python
You can set the brush values from a script, which helps when you want identical settings across files. Run it in Weight Paint mode so that a weight paint brush exists.
import bpy
settings = bpy.context.tool_settings.weight_paint
brush = settings.brush if settings else None
if brush is None:
print("Switch to Weight Paint mode and pick a brush first.")
else:
brush.blend = 'MIX'
brush.weight = 1.0
brush.strength = 0.2
brush.size = 80
print(brush.name, brush.blend, brush.weight, brush.strength, brush.size)In some Blender versions, size and strength can come from the Unified Paint Settings instead of the individual brush. If the values appear to have no effect, check the Unified Paint Settings option next to the Radius and Strength sliders.
Exercise
A character's elbow collapses to a sharp crease when the forearm bone rotates 90 degrees. The forearm group shows a hard edge from red to blue across the elbow. Which brush and settings do you use first, and what do you check afterward?
Show answer
Make the forearm group active, choose Blur with a low Strength (about 0.2) and a Radius just wider than the elbow transition, and stroke across the hard edge several times so the gradient builds up gradually. If the transition is too short because too little weight reaches the upper arm, first use Draw with Mix to adjust the weights, then blur. Afterward, check the upper arm group, because Auto Normalize may have changed it, and pose the arm again at 90 degrees to confirm that the crease is gone.
Exercise
You use Draw with Mix, Weight 0.0, to clear stray weight from the hand group on the forearm. The area stays red. Name two possible causes.
Show answer
The hand group may not be the active group, so the strokes edit a different group. The group may also be locked, which blocks edits. Check the highlighted group and its lock icon in the Vertex Groups list.