|02 February 2018|
Glasgow, United Kingdom
I imagine it's similar to the method of settings weights with skinPercent, in maya.cmds it would be:
In the above example we understand that skinCluster1 is connected to the shape node of pPlane1.
Of course in PyMel the skinCluster is a python object, if we assume the skinCluster is called sc then we would have:
This is just a guess by the way but hopefully it helps you a bit!
|05 May 2018|
The pymel command in invoking the OpenMaya function setWeights() as documented here: https://help.autodesk.com/view/MAYA..._ cluster_html
the "influences" argument is a list of integers - not pointers to nodes.
So you'll translate the list of influences you get from skinCluster.getInfluences() into a list of integers/indicies matching the weights you are passing into the call.
|reply share thread|