I think this is what your expecting ??......... Select any node before run
this script.
for x in nuke.selectedNodes():
print x.name()
a =nuke.createNode('Dot')
a.setName('Shuffle_Dot')
a['label'].setValue('Shuffle_Dot')
a.setInput(0, x)
DotX = a.xpos()
DotY = a.ypos()
shG = nuke.createNode("Shuffle", inpanel = False)
shG['alpha'].setValue('green')
shG['red'].setValue('green')
shG['green'].setValue('green')
shG['blue'].setValue('green')
shG['tile_color'].setValue(16711935)
shG['ypos'].setValue(int(DotY+100))
shG['xpos'].setValue(DotX)
srD = nuke.createNode('Dot')
srD.setName('ShuffleRedDot')
srD['label'].setValue('ShuffleRedDot')
srD.setInput(0, a)
srD['xpos'].setValue(int(DotX-200))
srD['ypos'].setValue(DotY)
shR = nuke.createNode("Shuffle", inpanel = False)
shR['alpha'].setValue('red')
shR['red'].setValue('red')
shR['green'].setValue('red')
shR['blue'].setValue('red')
shR['tile_color'].setValue(4278190335)
shR.setInput(0, srD)
shR['xpos'].setValue(int(DotX-200))
shR['ypos'].setValue(int(DotY+100))
sbD = nuke.createNode('Dot')
sbD.setName('ShuffleBlueDot')
sbD['label'].setValue('ShuffleBlueDot')
sbD.setInput(0, a)
sbD['xpos'].setValue(int(DotX+200))
sbD['ypos'].setValue(DotY)
shB = nuke.createNode("Shuffle", inpanel = False)
shB['alpha'].setValue('blue')
shB['red'].setValue('blue')
shB['green'].setValue('blue')
shB['blue'].setValue('blue')
shB['tile_color'].setValue(65535)
shB.setInput(0, sbD)
shB['xpos'].setValue(int(DotX+200))
shB['ypos'].setValue(int(DotY+100))
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python