Created
March 25, 2014 13:10
-
-
Save fredrikaverpil/9761505 to your computer and use it in GitHub Desktop.
Disable unselected Write nodes #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
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