VertexWeightMixModifier(Modifier)
base classes — bpy_struct, Modifier
- class bpy.types.VertexWeightMixModifier(Modifier)
Mix the weights of two vertex groups
- default_weight_a
Default weight a vertex will have if it is not in the first A vgroup (in [0, 1], default 0.0)
- Type:
float
- default_weight_b
Default weight a vertex will have if it is not in the second B vgroup (in [0, 1], default 0.0)
- Type:
float
- invert_mask_vertex_group
Invert vertex group mask influence (default False)
- Type:
bool
- invert_vertex_group_a
Invert the influence of vertex group A (default False)
- Type:
bool
- invert_vertex_group_b
Invert the influence of vertex group B (default False)
- Type:
bool
- mask_constant
Global influence of current modifications on vgroup (in [-inf, inf], default 1.0)
- Type:
float
- mask_tex_map_bone
Which bone to take texture coordinates from (default “”, never None)
- Type:
str
- mask_tex_mapping
Which texture coordinates to use for mapping (default
'LOCAL')LOCALLocal – Use local generated coordinates.GLOBALGlobal – Use global coordinates.OBJECTObject – Use local generated coordinates of another object.UVUV – Use coordinates from a UV layer.
- Type:
Literal[‘LOCAL’, ‘GLOBAL’, ‘OBJECT’, ‘UV’]
- mask_tex_use_channel
Which texture channel to use for masking (default
'INT')- Type:
Literal[‘INT’, ‘RED’, ‘GREEN’, ‘BLUE’, ‘HUE’, ‘SAT’, ‘VAL’, ‘ALPHA’]
- mask_tex_uv_layer
UV map name (default “”, never None)
- Type:
str
- mask_vertex_group
Masking vertex group name (default “”, never None)
- Type:
str
- mix_mode
How weights from vgroup B affect weights of vgroup A (default
'SET')SETReplace – Replace VGroup A’s weights by VGroup B’s ones.ADDAdd – Add VGroup B’s weights to VGroup A’s ones.SUBSubtract – Subtract VGroup B’s weights from VGroup A’s ones.MULMultiply – Multiply VGroup A’s weights by VGroup B’s ones.DIVDivide – Divide VGroup A’s weights by VGroup B’s ones.DIFDifference – Difference between VGroup A’s and VGroup B’s weights.AVGAverage – Average value of VGroup A’s and VGroup B’s weights.MINMinimum – Minimum of VGroup A’s and VGroup B’s weights.MAXMaximum – Maximum of VGroup A’s and VGroup B’s weights.
- Type:
Literal[‘SET’, ‘ADD’, ‘SUB’, ‘MUL’, ‘DIV’, ‘DIF’, ‘AVG’, ‘MIN’, ‘MAX’]
- mix_set
Which vertices should be affected (default
'AND')ALLAll – Affect all vertices (might add some to VGroup A).AVGroup A – Affect vertices in VGroup A.BVGroup B – Affect vertices in VGroup B (might add some to VGroup A).ORVGroup A or B – Affect vertices in at least one of both VGroups (might add some to VGroup A).ANDVGroup A and B – Affect vertices in both groups.
- Type:
Literal[‘ALL’, ‘A’, ‘B’, ‘OR’, ‘AND’]
- normalize
Normalize the resulting weights (otherwise they are only clamped within 0.0 to 1.0 range) (default False)
- Type:
bool
- vertex_group_a
First vertex group name (default “”, never None)
- Type:
str
- vertex_group_b
Second vertex group name (default “”, never None)
- Type:
str
- classmethod bl_rna_get_subclass(id, default=None, /)
- Parameters:
id (str) – The RNA type identifier.
default (
bpy.types.Struct| None) – The value to return when not found.
- Returns:
The RNA type or default when not found.
- Return type:
- classmethod bl_rna_get_subclass_py(id, default=None, /)
- Parameters:
id (str) – The RNA type identifier.
default (type | None) – The value to return when not found.
- Returns:
The class or default when not found.
- Return type:
type