pymel.core.nodetypes.WeightGeometryFilter

Inheritance diagram of WeightGeometryFilter

class WeightGeometryFilter(*args, **kwargs)
getWeightPlugStrings(list)

Set the plugStringArray argument to contain the names of the plugs on this node that correspond to the components in the selection list. The operation will fail if none of the items in the selection list correspond to components weighted by this cluster.

Parameters :
list : SelectionSet

selection list that contains components

Return type:

list list

Derived from api method maya.OpenMayaAnim.MFnWeightGeometryFilter.getWeightPlugStrings

getWeights(index)

Gets the weights of the components that correspond to the geometry at the specified plug index.

Parameters :
index : int

the plug index corresponding to the shape that has the components

Return type:

(PyNode, float list)

Derived from api method maya.OpenMayaAnim.MFnWeightGeometryFilter.getWeights

setWeight(path, index, components, weight, oldValues=None)

Sets the weights of the specified components of the object whose DAG path is specified.

Parameters :
path : PyNode

the DAG path for the object whose components’ weights are being set

index : int

the plug index for the specified shape

components : PyNode

the components of the object

weight : float

weight value for the components

oldValues : float list

an array of old values for the components

Derived from api method maya.OpenMayaAnim.MFnWeightGeometryFilter.setWeight

Undo is not currently supported for this method

weightPlugStrings(list)

Sets the plugStrings argument to be a string (separated by spaces) containing the names of the plugs on this node that correspond to the components in the selection list. The method can be useful in conjunction with setting keys on a number of plugs. The operation will fail if none of the items in the selection list correspond to components weighted by this cluster.

Parameters :
list : SelectionSet

selection list that contains components

Return type:

unicode

Derived from api method maya.OpenMayaAnim.MFnWeightGeometryFilter.weightPlugStrings

Previous topic

pymel.core.nodetypes.Water

Next topic

pymel.core.nodetypes.Wire

Core

Core Modules

Other Modules

This Page