Skip to content

Instantly share code, notes, and snippets.

@PeterDrakeNichols
Created October 11, 2017 16:39
Show Gist options
  • Save PeterDrakeNichols/2dcada6349c6feaa78b2bf0fad0f37ca to your computer and use it in GitHub Desktop.
Save PeterDrakeNichols/2dcada6349c6feaa78b2bf0fad0f37ca to your computer and use it in GitHub Desktop.
test if has skincluster
def hasSkinCluster(objList = []):
hasClusterList = []
for obj in objList:
objHist = mc.listHistory(obj, pdo=True)
skinCluster = mc.ls(objHist, type="skinCluster") or [None]
cluster = skinCluster[0]
if cluster:
hasClusterList.append(obj)
return hasClusterList
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment