Created
April 2, 2014 03:45
-
-
Save fereria/9927634 to your computer and use it in GitHub Desktop.
不要なBindPoseを削除する
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
import pymel.core as pm | |
def deleteUnusedBindPose(): | |
dagPose = pm.ls(type="dagPose") | |
for i in dagPose: | |
clstr = i.listConnections(type="skinCluster") | |
if len(clstr) == 0: | |
pm.delete(i) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment