Actually, subst just really came in handy today. It would be nice to have a
python equivalent, but in the meantime, I'll just wrap it. Thanks guys.

On Mon, Nov 7, 2011 at 12:40 AM, Ben Dickson <[email protected]> wrote:

> There's maybe more differences, but it doesn't expand %04d file numbers,
> only "[tcl ...]" stuff:
>
> _>>> r = nuke.nodes.Read()
> _>>> r['file'].setValue("[expr 1234*2].%04d.exr")
> _>>> r['file'].value()
> '[expr 1234*2].%04d.exr'
> _>>> r['file'].evaluate()
> '2468.0000.exr'
> _>>> nuke.tcl('subst', r['file'].value())
> '2468.%04d.exr'
>
> On 04/11/11 22:56, Ean Carr wrote:
> > The Foundry are using something this instead:
> >
> > user_label = nuke.value("size")
> > user_label = nuke.tcl("subst", user_label)
> >
> > Anyone know the difference between that and evaluate()? They both seem
> > to do the same thing.
> >
> > Thanks
> >
> > On Fri, Nov 4, 2011 at 12:03 PM, mrrafs
> > <[email protected]
> > <mailto:[email protected]>> wrote:
> >
> >     __
> >     solution use evaluate() i.e.
> >
> >     user_label = tn['label'].evaluate()
> >
> >     _______________________________________________
> >     Nuke-python mailing list
> >     [email protected]
> >     <mailto:[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
>
> --
> ben dickson
> 2D TD | [email protected]
> rising sun pictures | www.rsp.com.au
> _______________________________________________
> 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