Message 1 of 1
How to query the skin cluster name of an object?

Not applicable
03-01-2018
10:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Greetings,
I am looking for a method to query the name of the skin cluster of a skinned object, then I can use that name in the "copySkinWeights" command, using 'source skin' and 'destination skin' flags to copy the skin weights from one object to another.
Unfortunately, the 'skinCluster' command, nor any other command I can find in the documentation, has a convenient flag which returns the name of the skin cluster on an object.
Is there a convenient way to do this?
I suppose first I have to get the name of the shape, using 'listRelative' with the 'shape' flag...
Then I can use 'listConnections' with the 'type' flag to get the cluster name.
There is probably a better method for this...
Thank you!