'in' is a reserved word in Python.

To get around this, you either have to use nuke.createNode() (where the knob 
names and values are passed as a string), or set the 'in' knob in a separate 
call after creating the node.

-Nathan



From: Matias Volonte 
Sent: Friday, September 30, 2011 10:12 AM
To: Nuke user discussion 
Subject: [Nuke-users] nuke python - ShuffleCopy

when I try to create throught python a shuffleCopy node the following way I get 
an error:

nuke.nodes.ShuffleCopy(in='rgba')

If I create this node manually and I print it, that parameter appears there and 
it is fine.

what is wrong with this? thanks. 



--------------------------------------------------------------------------------
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to