Created
October 8, 2013 05:09
-
-
Save robomojo/6879762 to your computer and use it in GitHub Desktop.
find maya skincluster
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def findSkinClusters (): | |
skins = [] | |
shapes = pm.listRelatives(shapes=True, noIntermediate=True) | |
for shape in shapes: | |
skinClusters = pm.ls(type=pm.nodetypes.SkinCluster) | |
for skin in skinClusters: | |
mesh = pm.skinCluster(skin, q=True, g=True) | |
if mesh[0] == shape: | |
relatedSkinCluster = sc | |
skins.append(skin) | |
return skins | |
skins = findSkinClusters() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment