Sub topic 9
Normalizing weights and limiting influences
This chapter assumes you can bind a mesh with automatic weights and paint in Weight Paint mode. It also assumes you know that each bone maps to a vertex group of the same name. It covers keeping the weights on each vertex consistent, so the mesh deforms predictably in Blender and in other software.
Why weights need rules
A vertex can belong to many vertex groups, and each membership has its own weight from 0.0 to 1.0. Nothing in the data stops those weights from adding up to 0.4 on one vertex and 2.3 on the next. Painting makes this easy to do: a stroke with the Draw brush raises one group and leaves the others alone.
Two rules keep the data clean:
- Normalized: the deform weights on each vertex add up to 1.0.
- Limited: each vertex has at most a fixed number of non-zero influences. Four is the usual limit for game engines.
The two rules interact. Removing influences changes the sum, so you limit first and normalize afterwards.
What normalization means
Normalizing divides every weight on a vertex by the vertex's total, so the new total is 1.0. A vertex with weights 0.2 and 0.2 becomes 0.5 and 0.5. The proportions between bones stay the same. Only the overall scale changes.
Consider a vertex on an elbow with these weights:
| Group | Before | After normalizing |
|---|---|---|
| UpperArm | 0.6 | 0.5 |
| Forearm | 0.3 | 0.25 |
| Hand | 0.3 | 0.25 |
The total before is 1.2. Dividing each weight by 1.2 gives the right-hand column.
Why it matters
Blender's Armature modifier combines the bone influences on a vertex when it evaluates the mesh. Do not rely on that behavior to cover sloppy weights. Other software treats totals that are not 1.0 differently. Some exporters renormalize, some game engines do not, and some tools clamp. If you normalize in Blender, the mesh deforms the same way everywhere.
Normalization also makes the weight display trustworthy. In Weight Paint mode you see only the active group's weight as a color. A red area in one group says nothing about whether the other groups on that vertex are consistent.
Vertices with no weight
A vertex whose total is 0.0 has nothing to divide. Normalization leaves it at zero, so it has no bone and does not follow the armature. Find these vertices before you normalize, because normalizing will not fix them. Auto weights or a brush stroke has to give them an influence first.
Auto Normalize while painting
You can keep weights normalized as you paint. In Weight Paint mode, open the Options panel in the sidebar or Tool settings and enable Auto Normalize.
With it on, painting a weight into one group adjusts the other deform groups on the same vertex so that the total stays at 1.0. Raise Forearm to 0.8 and the other groups share the remaining 0.2, in proportion to what they held.
Keep in mind how it behaves:
- It only considers groups tied to deform bones. Groups with no matching bone, or matching a bone with Deform off, are left out of the sum.
- It does not repair existing bad weights. It keeps the total at 1.0 only on vertices you touch with the brush.
- It is a paint-time setting, not a data property. Weights painted with it off, or imported from another file, stay unnormalized until you run a normalize operator.
- Pushing one group toward 1.0 pulls weight from the others. If you want to keep some group fixed, lock it first (see below).
Locking groups
Each vertex group in the Object Data properties list has a lock icon. A locked group cannot be changed by brushes or by operators that respect locks. This is how you protect finished work. When the shoulder is correct, lock its groups and keep painting the chest.
Locks interact with normalization. If Auto Normalize needs to take weight from other groups and some are locked, only the unlocked groups give up weight. If nothing is left to adjust, the stroke can have less effect than you expect. A brush that "does nothing" often means the neighboring groups are locked.
Normalize and Normalize All
The Weights menu in Weight Paint mode has two normalize operators:
| Operator | What it changes | When to use it |
|---|---|---|
| Normalize | Only the active group, scaled so its highest weight is 1.0 | Rare. It rescales one group and does not make vertex totals 1.0 |
| Normalize All | All chosen groups, so each vertex totals 1.0 | The operator you want before export |
Do not confuse them. Normalize works on the active group alone, on the scale of that group's maximum. Normalize All works across groups on each vertex. Almost every skinning task needs Normalize All.
Normalize All has two options that matter:
- Subset (
group_select_mode) chooses which groups take part. Use the deform-bone choice to leave helper groups, such as a mask group, out of the sum. Use All only when every group on the mesh is a bone group. - Lock Active keeps the active group's weights as they are and scales the others to fill the rest. It is on by default in the operator. For a general cleanup, turn it off so no group is favored.
Limiting influences
Limit Total removes the lowest weights on each vertex until no more than the given number of groups remain. Automatic weights often produce vertices with five, six or more tiny influences from nearby bones, and those spread out when the bones move. A real-time engine that only reads four influences per vertex would drop the extras and then handle the rest unpredictably.
Limit Total deletes the smallest weights. It does not redistribute them. After a limit from five influences to four, a vertex that had weights 0.4, 0.3, 0.2, 0.08 and 0.02 totals 0.98 and no longer sums to 1.0. This is why Normalize All must follow.
The following script runs both steps. Select the mesh and make it the active object first.
import bpy
# Run with the mesh as the active object (Object Mode or Weight Paint mode).
# Keep at most 4 bone influences per vertex, then make weights sum to 1.
bpy.ops.object.vertex_group_limit_total(group_select_mode='ALL', limit=4)
bpy.ops.object.vertex_group_normalize_all(group_select_mode='ALL', lock_active=False)In the interface, the same two operators are in Weights > Limit Total and Weights > Normalize All. After running Limit Total, open the Adjust Last Operation panel to set the limit and the group subset.
Checking the result
Do not assume the operators worked. This script reports vertices that break either rule. It reads each vertex's group memberships, which is the same data the Python chapter covers later.
import bpy
obj = bpy.context.active_object
max_influences = 4
tolerance = 0.001
too_many = 0
bad_sum = 0
unweighted = 0
for v in obj.data.vertices:
weights = [g.weight for g in v.groups if g.weight > 0.0]
if not weights:
unweighted += 1
continue
if len(weights) > max_influences:
too_many += 1
if abs(sum(weights) - 1.0) > tolerance:
bad_sum += 1
print(f"Vertices: {len(obj.data.vertices)}")
print(f"Over {max_influences} influences: {too_many}")
print(f"Sum not 1.0: {bad_sum}")
print(f"No weight at all: {unweighted}")This counts every group on the mesh, including non-deform groups. If you keep helper groups, filter g.group against the names of your deform bones, or your counts will be too high.
A healthy result prints zero for all three problems. A nonzero "No weight at all" count points to the vertices that need painting. Normalization cannot fix those.
Common problems
- Weights do not sum to 1.0 after Normalize All. The vertex has a locked group, or the Subset excludes the groups holding the weight. Unlock the groups and set the Subset again.
- Sums are off after Limit Total. You skipped the normalize step. Run Normalize All.
- A stroke has no effect with Auto Normalize on. The other groups on that vertex are locked, so there is nothing to take weight from.
- Helper groups distort the result. A mask group is being treated as a bone group. Restrict the operators to deform groups, or paint the helper group in a separate pass.
- Mesh looks right in Blender and wrong in the engine. Check the engine's influence count. If it reads fewer than your limit, lower the limit and repeat the limit and normalize steps.
Exercise
A vertex has weights UpperArm 0.5, Forearm 0.3, Hand 0.1, Finger 0.07, Twist 0.03. You run Limit Total with a limit of 3, and then Normalize All with Lock Active off. What are the final weights, and why does the order of the two operators matter?
Show answer
Limit Total keeps the three largest weights: UpperArm 0.5, Forearm 0.3 and Hand 0.1. Their total is 0.9. Normalize All divides each by 0.9, giving about 0.556, 0.333 and 0.111, which sum to 1.0. The order matters because Limit Total removes weights without redistributing them. If you normalized first and then limited, the vertex would end at a total below 1.0 and be left unnormalized.