Skip to content

Instantly share code, notes, and snippets.

@fereria
Created April 2, 2014 03:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fereria/9927634 to your computer and use it in GitHub Desktop.
Save fereria/9927634 to your computer and use it in GitHub Desktop.
不要なBindPoseを削除する
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