I couldn't get the above to work.
Using:
nuke.Shuffle("red {red} green {green} blue {blue} alpha {alpha}")
Results in:
# Result:
File "<string>", line 1
nuke.Shuffle("red {red} green {green} blue {blue} alpha {alpha}"
^
SyntaxError: unexpected EOF while parsing
----
But for simple stuff, this works:
w = nuke.nodes.Shuffle()
w['red'].setValue("red")
w['green'].setValue("green")
w['blue'].setValue("blue")
w['alpha'].setValue( "white" )
OR similarly:
w = nuke.nodes.Shuffle()
w['red'].setValue("black")
w['green'].setValue("black")
w['blue'].setValue("black")
w['alpha'].setValue( "red" )
For inputs mapping to outputs, I would start looking here for clues:
http://docs.thefoundry.co.uk/nuke/70/pythondevguide/channels.html?highlight=channels
Cheers
- Jim
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python