Nuke Scripting

For scripting go click the button on the top left of the nuke pane. Go to windows-> Script Editor. In the script editor you can write and execute scripts.

Comment
Piece of script that doesn't do anything and is just for clarification of the code. A comment can be made by starting the line with a # symbol.

for in loop
This is python script to loop trough a piece of code until it's executed for everything within the loop. This can be used to change a knob on a lot of nodes at once: for i in nuke.selectedNodes: i.knob('Choose a knob here').setValue(Choose a value here) To change all the bounding boxes of multiple merges to B for example: for i in nuke.selectedNodes: i.knob('bbox').setValue(3)