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


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

Thanks !

Nuke-python mailing list,

ben dickson
2D TD |
rising sun pictures |
Nuke-python mailing list,

Reply via email to