I am trying to get the weights of a cluster using pymel.
cluster = pm.ls(sl=True)
cluster[0].getWeights()
I looked at the help and it gives me this.
Help on method getWeights in module pymel.internal.factories:
getWeights(self, index) method of pymel.core.nodetypes.Cluster instance
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
:rtype: (`PyNode`, `float` list)
Derived from api method `maya.OpenMayaAnim.MFnWeightGeometryFilter.getWeights`
I ended up doing this but I am getting an error.
cluster[0].getWeights(0)
What does this mean?
"the plug index corresponding to the shape that has the components "