Skip to content

Instantly share code, notes, and snippets.

@sanfx
Created July 29, 2013 11:36
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 sanfx/6103756 to your computer and use it in GitHub Desktop.
Save sanfx/6103756 to your computer and use it in GitHub Desktop.
delete unused read nodes in nuke
for each in nuke.allNodes('Read'):
if not len(each.dependent()):
if not each.maxOutputs() == 0:
print nuke.delete(each)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment