You can use the func(**kwargs_dict) syntax to get around this:

shuffle = nuke.nodes.Shuffle (**{'label':         layer,
                                 'in':            layer,
                                 'postage_stamp': True})

On 19/09/16 17:47, Justin GD wrote:
Hi all,

Quick question, if I want to create a shuffle node with its 'in'
parameter set, I get an error from python as it interpret it as a
keyword. How can I bypass this ?

shuffle=  nuke.nodes.Shuffle(  label=  layer,
                                   in            =  layer,     <-- ERROR
                                postage_stamp=  True)


I know I can put another line like

shuffle['in'].setValue(layer)

, but I wanted to know if it was possible to do everything in one line.

Thanks !
Justin


_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python


--
ben dickson
2D TD | ben.dick...@rsp.com.au
rising sun pictures | www.rsp.com.au
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to