Skip to content

Instantly share code, notes, and snippets.

@robomojo
Created October 8, 2013 05:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save robomojo/6879762 to your computer and use it in GitHub Desktop.
Save robomojo/6879762 to your computer and use it in GitHub Desktop.
find maya skincluster
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