Vertex Weight Mix Modifier

../../../_images/modeling_modifiers_modify_weight-mix_panel.png

The Vertex Weight Mix Modifier panel.

This modifier mixes a second vertex group (or a simple value) into the affected vertex group, using different operations.

Important

This modifier does implicit clamping of weight values in the standard (0.0 to 1.0) range. All values below 0.0 will be set to 0.0, and all values above 1.0 will be set to 1.0.

Options

Vertex Group A
The vertex group to affect.
Default Weight A
The default weight to assign to all vertices not in the given vertex group.
Vertex Group B
The second vertex group to mix into the affected one. Leave it empty if you only want to mix in a simple value.
Default Weight B
The default weight to assign to all vertices not in the given second vertex group.
Mix Mode

How the vertex group weights are affected by the other vertex group's weights.

Replace weights
Replaces affected weights with the second group's weights.
Add to weights
Adds the values of Group B to Group A.
Subtract from weights
Subtracts the values of Group B from Group A.
Multiply weights
Multiplies the values of Group B with Group A.
Divide weights
Divides the values of Group A by Group B.
Difference
Subtracts the smaller of the two values from the larger.
Average
Adds the values together, then divides by 2.
Mix Set

Choose which vertices will be affected.

All vertices
Affects all vertices, disregarding the vertex groups content.
Vertices from group A
Affects only vertices belonging to the affected vertex group.
Vertices from group B
Affects only vertices belonging to the second vertex group.
Vertices from one group
Affects only vertices belonging to at least one of the vertex groups.
Vertices from both groups
Affects only vertices belonging to both vertex groups.

Important

When using All vertices, Vertices from group B or Vertices from one group, vertices might be added to the affected vertex group.

Influence/Mask Options

Global Influence

The overall influence of the modifier (0.0 will leave the vertex group's weights untouched, 1.0 is standard influence).

Important

Influence only affects weights, adding/removing of vertices to/from vertex group is not prevented by setting this value to 0.0.

Vertex Group Mask

Vertex Group Mask
An additional vertex group, the weights of which will be multiplied with the global influence value for each vertex. If a vertex is not in the masking vertex group, its weight will be not be affected.

Texture Mask

Texture Mask

An additional texture, the values of which will be multiplied with the global influence value for each vertex.

This is a standard texture data-block control. When set, it reveals other settings:

Texture Coordinates

How the texture is mapped to the mesh.

Local
Use local vertex coordinates.
Global
Use vertex coordinates in global space.
Object

Use vertex coordinates in another object's space.

Object
The object to be used as reference for Object mapping.
UV

Use a UV map's coordinates.

UV Map
The UV map to be used for UV mapping.
Use Channel

Which channel to use as weight factor source.

Red/Green/Blue/Alpha
One of the color channels' values.
Intensity
The average of the RGB channels (if RGB(1.0, 0.0, 0.0) value is 0.33).
Value
The highest value of the RGB channels (if RGB(1.0, 0.0, 0.0) value is 1.0).
Hue
Uses the hue value from the standard color wheel (e.g. blue has a higher hue value than yellow).
Saturation
Uses the saturation value (e.g. pure red's value is 1.0, gray is 0.0).

Note

All of the channels above are gamma corrected, except for Intensity.

Note

You can view the modified weights in Weight Paint Mode. This also implies that you will have to disable the Vertex Weight Mix Modifier if you want to see the original weights of the vertex group you are editing.

Example

Using a Texture and the Mapping Curve

Here we are going to create a sort of strange alien wave (yes, another example with the Wave Modifier... but it is a highly visual one; it is easy to see the vertex group effects on it...).

So as above, add a 100×100 grid. This time, add a vertex group, but without assigning any vertex to it -- we will do this dynamically.

Add a first Vertex Weight Mix Modifier, set the Vertex Group A field with a Default Weight A of 0.0, and set Default Weight B to 1.0.

Leave the Mix Mode to Replace weights, and select All vertices as Mix Set. This way, all vertices are affected. As none are in the affected vertex group, they all have a default weight of 0.0, which is replaced by the second default weight of 1.0. And all those vertices are also added to the affected vertex group.

Now, select or create a masking texture. The values of this texture will control how much of the "second weight" of 1.0 replaces the "first weight" of 0.0... In other words, they are taken as weight values!

You can then select which texture coordinates and channel to use. Leave the mapping to the default Local option, and play with the various channels...

Texture channel variations.
../../../_images/modeling_modifiers_modify_weight-mix_intensity.jpg

Using intensity.

../../../_images/modeling_modifiers_modify_weight-mix_red.jpg

Using Red.

../../../_images/modeling_modifiers_modify_weight-mix_saturation.jpg

Using Saturation.

Do not forget to add a Wave Modifier, and select your vertex group in it!

You can use the weights created this way directly, but if you want to play with the curve mapping, you must add the famous Vertex Weight Edit Modifier, and enable its Custom Curve mapping.

By default, it is a one-to-one linear mapping -- in other words, it does nothing! Change it to something like in Fig. Custom mapping curve., which maps (0.0, 0.5) to (0.0, 0.25) and (0.5, 1.0) to (0.75, 1.0), thus producing nearly only weights below 0.25, and above 0.75: this creates great "walls" in the waves...

Custom mapping curve.
../../../_images/modeling_modifiers_modify_weight-mix_map-curve.png

A customized mapping curve.

../../../_images/modeling_modifiers_modify_weight-mix_red.jpg

Custom Mapping disabled.

../../../_images/modeling_modifiers_modify_weight-mix_red-map.jpg

Custom Mapping enabled.

The blend-file, TEST_4 scene.