nuke.nodes.Blur() = bring "Blur" node
nuke.nodes.Blur(name='MyBlur') = Rename Blur as Myblur
MyBlur=nuke.nodes.Blur(name='MyBlur') = myblur is named as "my blur" like the original node name
MyBlur.knob('tile_color').setValue(1) = Set Color Black Node
MyBlur.knob('size').setValue(10) = Blur size 10
MyBlur.setName('new') = name change from myblur to new
nuke.delete(MyBlur) = delete Node, myblur
nuke.createNode('CheckerBoard') = Create Node
checker = nuke.createNode('CheckerBoard') assign “checker” to CheckerBoard
nuke.connectViewer(0,checker) Connect Checker to ViewNode
checker.knob('boxsize').setValue(50)
checker.knob('markcenter').setValue(False) Default
* On/Off Commend: [turu,false]
Test Sample
myBlur=nuke.createNode('Blur')
myBlur.knob('size').setValue(15)
nuke.nodes.Glow()
myGlow=nuke.toNode('Glow1')
myGlow.setInput(0,myBlur)
nuke.connectViewer(0,myGlow)
nuke.nodes.Grade(add='10') nuke.nodes.Grade()
Comments