Awesome, Simon. Tack! ;)

On Thu, Aug 21, 2014 at 8:48 AM, Simon Björk <[email protected]> wrote:

> The evalutate() function should do just that:
> nuke.toNode("Write1").knob("file").evaluate().
>
> Best regards,
> Simon
>
>
> -------------------------------
> Simon Björk
> Compositor/TD
>
> +46 (0)70-2859503
> www.bjorkvisuals.com
>
>
> 2014-08-21 8:16 GMT+02:00 Fredrik Averpil <[email protected]>:
>
>>  Hi,
>>
>> Is there any way I can evaluate an expression, just like Nuke does
>> internally?
>>
>> For example, in the code below I wish to evaluate val into
>> C:/Write1.001.jpg:
>>
>> val = nuke.toNode('Write1').knob('file').getValue()print val
>> # Result:
>> [ python 'C:/' + nuke.thisNode().name() ].%04d.jpg
>>
>> Regards,
>> Fredrik
>> ​
>>
>> _______________________________________________
>> Nuke-python mailing list
>> [email protected], http://forums.thefoundry.co.uk/
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>>
>>
>
> _______________________________________________
> Nuke-python mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
>
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to