I’m trying to get the
skinCluster of a selected object.
The code works. However, if the selected object is a reference object, the code will not output the relevant
skinCluster was not made in the reference file itself but in the file it was referenced in.
You can check the illustration video here (12 sec)
Here is the code so far:
import pymel.core as pm obj = pm.ls(sl=True).getShape() skinClusterNode = None for node in obj.connections(): print node.nodeType() if node.nodeType() == 'skinCluster': skinClusterNode = node #print skinClusterNode