expression in text node

Home Page forums Applications Nuke expression in text node

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #203655
    Anonymous
    Guest

    Hello forum,

    I have a text node which I want to print out the current seconds. My expression is very simple:
    intframe]/[knob root.fps the problem is that I cant write it in the text message because it read the (/) as symbol and not as divider between the current frame and the fps. Then I created a user knob in the shame text node, a simple integer which was able to read the above expression and give me the result. But when I linked this knob with my message field, prints the expression and not the result.

    Does anyone knows how to fix that, I will be interest to know
    1. how can I use mathematical symbols as (+, -, / etc.) in the text node.
    2. how can I link the result of an expression in the text node and not the expression itself.

    thanks

    #219197
    Anonymous
    Inactive

    Not in front of my workstation at the moment but try ‘escaping’ the character like this

    intframe]/[knob root.fps

    or this
    intframe]”/”[knob root.fps

    #219196
    jacobson michael
    Participant

    Try Python :

    [python int(nuke.frame()/nuke.root().fps())]

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Copy link
Powered by Social Snap