Or...

You can use python inside of a Text Node.  

Yeah, it was a surprise to me, too.

Here are a couple of examples:

 (Time:  [format "%.2f" [python float(nuke.frame()/nuke.root().fps())]]) ## 
time from frame/fps
 (Value: [format "%.3f" [python float([value CheckerBoard.color0.r])]]   ## 
value from another node knob named "CheckBoard"

These are both float examples, but int can be used as well, and as you can see 
in the first example, values outside the Text Node can be put into expressions 
and evaluated.

Cheers.
- Jim



_______________________________________________
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