Skip to content

Instantly share code, notes, and snippets.

@bohdon
Created April 11, 2012 19:54
Show Gist options
  • Save bohdon/2361959 to your computer and use it in GitHub Desktop.
Save bohdon/2361959 to your computer and use it in GitHub Desktop.
bad node finder for pymel
from pymel.core import *
for x in cmds.ls(r=True, l=True):
try:
PyNode(x)
except Exception as e:
print('bad node {0}: {1}'.format(x, e))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment