On 19 September 2016 at 09:26, Ben Dickson <ben.dick...@rsp.com.au> wrote:

> You can use the func(**kwargs_dict) syntax to get around this:
>
+1 you beat me to it Ben :)


>
> 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
>



-- 
Frank Harrison
Senior Nuke Software Engineer
The Foundry
Tel: +44 (0)20 7968 6828 - Fax: +44 (0)20 7930 8906
Web: www.thefoundry.co.uk
Email: frank.harri...@thefoundry.co.uk
_______________________________________________
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