set cut_paste_input [stack 0]
version 7.0 v5
push $cut_paste_input
NoOp {
name dollarGuiHandler
selected true
xpos 0
hide_input true
addUserKnob {20 dollarGuiHandler l "\$gui handler"}
addUserKnob {1 list -STARTLINE}
addUserKnob {26 line l "" +STARTLINE}
addUserKnob {22 addAllToList l "add all to list" T "for n in nuke.allNodes():\n n.setSelected(False)\n\nfor n in nuke.allNodes():\n if n.Class() == 'VectorBlur':\n n.setSelected(True)\n elif n.Class() == 'ZDefocus2':\n n.setSelected(True)\n else:\n n.setSelected(False)\n \nlist = nuke.thisNode()\['list'].value()\nprint list\n\nfor i in nuke.selectedNodes():\n if i.name() in list:\n pass\n else:\n list = list + i.name() + '\\n'\nnuke.thisNode()\['list'].setValue(list)\n\nfor n in nuke.allNodes():\n n.setSelected(False)" +STARTLINE}
addUserKnob {22 addToList l "add to list" -STARTLINE T "list = nuke.thisNode()\['list'].value()\nfor i in nuke.selectedNodes():\n if i.name() in list:\n pass\n else:\n list = list + i.name() + '\\n'\nnuke.thisNode()\['list'].setValue(list)"}
addUserKnob {22 clearList l "clear list" -STARTLINE T "nuke.thisNode()\['list'].setValue('')"}
addUserKnob {22 highlightList l "highlight List" -STARTLINE T "for n in nuke.allNodes():\n n.setSelected(False)\nfor n in nuke.allNodes():\n for nn in nuke.thisNode()\['list'].value().split('\\n'):\n if n.name()==nn:\n n.setSelected(True)"}
addUserKnob {22 changeNodeColor l "change node color" -STARTLINE T "for n in nuke.allNodes():\n n.setSelected(False)\nfor n in nuke.allNodes():\n for nn in nuke.thisNode()\['list'].value().split('\\n'):\n if n.name()==nn:\n n.setSelected(True) \nnukescripts.color_nodes()"}
addUserKnob {22 setDollerGui l "set \$gui" T "for n in nuke.allNodes():\n n.setSelected(False)\nfor n in nuke.allNodes():\n for nn in nuke.thisNode()\['list'].value().split('\\n'):\n if n.name()==nn:\n n.setSelected(True)\n nuke.selectedNode()\['disable'].setExpression('\$gui')\n n.setSelected(False)\n else:\n n.setSelected(False)" +STARTLINE}
addUserKnob {22 removeDollerGui l "remove \$gui" -STARTLINE T "for n in nuke.allNodes():\n for nn in nuke.thisNode()\['list'].value().split('\\n'):\n if n.name()==nn:\n n.setSelected(True)\n nuke.selectedNode()\['disable'].clearAnimated() \n nuke.selectedNode()\['disable'].setValue(0)\n n.setSelected(False)\n else:\n n.setSelected(False)"}
}