Created
July 29, 2013 11:36
-
-
Save sanfx/6103756 to your computer and use it in GitHub Desktop.
delete unused read nodes in nuke
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
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