

SubMenuItem = mainMenuItem.findItem( "subMenu" ) MainMenuItem = mainMenu.addMenu( "NewMenuName" ) MainMenuItem = mainMenu.findItem( "NewMenuName" )

# animate text by getting a knob's value of current node: # animate text by getting a knob's value of a specific node: Metadata_content = '\n' % (lgtName, lgtCustomName, lgtName, str(maxL), lgtName, str(lgt_EV), lgtName, str(lgt_LUX), lgtName, string.replace(str(pos2D),' ',''), lgtName, string.replace(str(pos3D),' ',''), lgtName, str(distance), lgtName, string.replace(str(scale),' ',''), lgtName, outputPath) HdriGenNode.knob('lgt_maskClr_1').setValue(0.4,3) # set only the alpha HdriGenNode.knob('lgt_maskClr_1').setValue() PosNode.knob('gradeRGB').setLabel("test") MyNode.knob("ROI").setExpression("parent." + pos_name) # get one value out of an array paramaterįor node in nuke.allNodes('Write'): writeNodesList.append(node) # create a grade node set to only red and change its gain

K.makeLink(node.name(), 'attr2_id.attr2') MetaNode.knob('operation').setValue('Avg Intensities') NewNode = nuke.nodePaste(nukescripts.cut_paste_file()) Nuke.nodeCopy(nukescripts.cut_paste_file()) Nuke.toNode('original node').setSelected(True) Nuke.toNode('GroupNodeName.nestedNodeName')įor label, knob in sorted(lectedNode().knobs().iteritems()): print label, knob.value()įor n in nuke.allNodes(): toplaceSnap( n ) See Improving Mattes, Despilling and Color Replacement, and Multi-Pass Keying for more information.HdriGenNode = nuke.toNode('HDRI_Light_Export')ĬlampTo1 = nuke.toNode('HDRI_Light_Export.Clamp To 1') Picking the screen color may be enough for a lot of keys, but there are many more tools within Nuke that can be used to tackle more complicated shots. Merge the foreground over the background to produce your final comp. In some cases, this is all you need to do to perform a key, since selecting the screen color creates a screen matte and despills the foreground. This averages the pixels in the area selected to produce a better key. In the ChromaKeyer Properties panel, click the color swatch next to screen color to activate the eye dropper.Ĭtrl/ Cmd+ Shift+click and drag a rectangular area over the green pixels in the Viewer. From the Keyer menu, select ChromaKeyer and attach a Viewer. Start Nuke and read in the foreground and background images. The images below show a green screen foreground and the background to be composited over. ChromaKeyer is also available as a soft effect in Nuke Studio's timeline environment. ChromaKeyer can take advantage of modern GPUs and multi-core CPUs to accelerate the keying process when used for compositing in Nuke's Node Graph. This section explains how to use the blue/green screen keyer, ChromaKeyer, in Nuke.
