Created
October 11, 2017 16:39
-
-
Save PeterDrakeNichols/2dcada6349c6feaa78b2bf0fad0f37ca to your computer and use it in GitHub Desktop.
test if has skincluster
This file contains hidden or 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 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