Skip to content

Instantly share code, notes, and snippets.

@sean-c-johnston
Last active June 25, 2020 07:37
Show Gist options
  • Save sean-c-johnston/10634130 to your computer and use it in GitHub Desktop.
Save sean-c-johnston/10634130 to your computer and use it in GitHub Desktop.
Nuke script, reloads all Read nodes to update any images that may have changed.
def allNodeReload():
'''Reloads all applicable nodes in the project.'''
rl, nr = 0
for node in nuke.allNodes():
if node.knob("reload"):
rl += 1
print node.name()
node.knob("reload").execute()
else:
nr += 1
print rl, 'nodes reloaded,', nr, 'not reloadable.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment