Skip to content

Instantly share code, notes, and snippets.

@davidlatwe
Created May 27, 2017 09:06
Show Gist options
  • Save davidlatwe/437093ddf80f139429d47ece10fef200 to your computer and use it in GitHub Desktop.
Save davidlatwe/437093ddf80f139429d47ece10fef200 to your computer and use it in GitHub Desktop.
Remove Maya Unknow Nodes
# Remove maya unknow nodes
from pymel.core import *
for node in ls(typ= 'unknown'):
if lockNode(node, q= 1, l= 1):
print node.name()
lockNode(node, l= False)
delete(node)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment