PaintWeights

Introduced

v5.0

Description

Modifies the value of a weight property.

Scripting Syntax

oReturn = PaintWeights( [InputObj], Indices, Weights, [Flags], [Deformer], [Normalize] );

Return Value

Returns the painter Operator.

Parameters

Parameter Type Description
InputObj String The weight property to paint on, or the Weight Paint Operator.

Default Value: Current selection

Indices XSICollection Array of indices of the weight values to modify.
Weights XSICollection The new value for each index (or a single value for all).
Flags Integer Paint flag.

Default Value: 0

Possible Values:

Description:

0 Add to existing painted value.
1 Replace value.
Deformer Integer Number of the deformer, if it is an envelope weight map

Default Value: 0

Normalize Boolean True to automatically normalizes weights as you paint, if it is an envelope weight map.

Default Value: True

See Also

CreateWeightMap ClusterProperty