Skip to content

Instantly share code, notes, and snippets.

@fredrikaverpil
Created March 25, 2014 13:10
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 fredrikaverpil/9761505 to your computer and use it in GitHub Desktop.
Save fredrikaverpil/9761505 to your computer and use it in GitHub Desktop.
Disable unselected Write nodes #nuke
def disableUnselectedWriteNodes():
selectedNodes = nuke.selectedNodes() # Get all selected nodes
allWriteNodes = nuke.allNodes('Write') # Get all write nodes
for node in allWriteNodes:
nuke.toNode(node.name()).knob('disable').setValue(True)
for node in selectedNodes:
nuke.toNode(node.name()).knob('disable').setValue(False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment