pymel.core.nodetypes.WeightGeometryFilter¶
digraph inheritanced39f2c6a12 { rankdir=TB; ranksep=0.15; nodesep=0.15; size="8.0, 12.0"; "DependNode" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="pymel.core.nodetypes.DependNode.html#pymel.core.nodetypes.DependNode",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8]; "PyNode" -> "DependNode" [arrowsize=0.5,style="setlinewidth(0.5)"]; "GeometryFilter" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="pymel.core.nodetypes.GeometryFilter.html#pymel.core.nodetypes.GeometryFilter",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8]; "DependNode" -> "GeometryFilter" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ProxyUnicode" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="../pymel.util.utilitytypes/pymel.util.utilitytypes.ProxyUnicode.html#pymel.util.utilitytypes.ProxyUnicode",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8]; "PyNode" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="../pymel.core.general/pymel.core.general.PyNode.html#pymel.core.general.PyNode",style="setlinewidth(0.5)",tooltip="Abstract class that is base for all pymel nodes classes.",height=0.25,shape=box,fontsize=8]; "ProxyUnicode" -> "PyNode" [arrowsize=0.5,style="setlinewidth(0.5)"]; "WeightGeometryFilter" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="#pymel.core.nodetypes.WeightGeometryFilter",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8]; "GeometryFilter" -> "WeightGeometryFilter" [arrowsize=0.5,style="setlinewidth(0.5)"]; }
- 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