set cut_paste_input [stack 0] version 12.2 v4 push $cut_paste_input NoOp { name RENDER_SAMPLES tile_color 0xff0000ff selected true xpos -440 ypos 6027 addUserKnob {20 User} addUserKnob {3 samples} samples {{"\$gui==1?check==0?1:this.max:this.max"}} addUserKnob {3 max l "render samples"} max 10 addUserKnob {7 shutter R 0 2} shutter 0.5 addUserKnob {6 check +STARTLINE} addUserKnob {22 link l "link to renders" T "success = nuke.ask('This will link all your ScanlineRenders samples and shutter to this node. Are you sure?')\n\nif success:\n thisname = nuke.thisNode().fullName()\n for node in nuke.allNodes(recurseGroups=False):\n if node.Class() == 'ScanlineRender':\n node.knob('samples').setExpression('parent.'+thisname+'.samples')\n node.knob('shutter').setExpression('parent.'+thisname+'.shutter')\n node.knob('shutteroffset').setValue('centred')" +STARTLINE} }