Buttons to disable / enable nodes in batch
How to use:
Copy the names of the nodes you need to disable, paste it in the "nodesToDisable" text box, separate them by comma.
Node:
set cut_paste_input [stack 0]
version 12.2 v5
push $cut_paste_input
NoOp {
name disableSlowNodes
selected true
xpos 2490
ypos 3615
addUserKnob {20 User}
addUserKnob {1 nodesToDisable}
nodesToDisable OpticalZDefocus,OpticalZDefocus1,VRayDenoiser1,VRayDenoiser2
addUserKnob {22 Enable T "n = nuke.thisNode()\['nodesToDisable'].getValue()\nn = list(n.split(\",\"))\nfor i in n:\n nuke.toNode(i).knob('disable').setValue(0)" +STARTLINE}
addUserKnob {22 Disable T "n = nuke.thisNode()\['nodesToDisable'].getValue()\nn = list(n.split(\",\"))\nfor i in n:\n nuke.toNode(i).knob('disable').setValue(1)" +STARTLINE}
}