Jump to: Board index » General » Fusion

Text+, expression and string

Learn about 3D compositing, animation, broadcast design and VFX workflows.
  • Author
  • Message
Offline

phantom-studio

  • Posts: 10
  • Joined: Fri Aug 21, 2015 11:45 am
  • Location: France

Text+, expression and string

PostMon Sep 07, 2015 9:02 am

Hi all,
i would like to animate a text+ node with a integer number animated and a arbitrary string in the same node .
I added an user control named "Longueur" (type:number ) and i can animate it,
i added an other user control named "userText" (type:Text)
but i can t find a way to concatenate the two in one expression in the styled Text parameter
my expression is : Longueur,userText
i tried with ";" but i does not work neither.
Have you any ideas to solve this ?
Offline

Daniel Moore

  • Posts: 20
  • Joined: Wed Aug 22, 2012 1:06 am

Re: Text+, expression and string

PostTue Sep 08, 2015 11:04 pm

Hi,
you can use the "expression" option in the context menu on the "Styled Text" field to set it to a Lua expression.

The expression will be evaluated whenever the tool is rendered and the result used as the styled text.

As an example, you could set the expression to:
Code: Select all
"Current frame " .. time
to see a simple frame counter.

cheers
Offline

phantom-studio

  • Posts: 10
  • Joined: Fri Aug 21, 2015 11:45 am
  • Location: France

Re: Text+, expression and string

PostWed Sep 09, 2015 9:44 am

ok thanks ,
Is there a lua or python documentation for fusion ?
Offline
User avatar

Rony Soussan

  • Posts: 727
  • Joined: Tue Nov 11, 2014 5:33 pm

Re: Text+, expression and string

PostWed Sep 09, 2015 5:10 pm

New docs are in the works, very close.
Offline

Frank Gallego

  • Posts: 5
  • Joined: Fri Oct 02, 2015 7:16 pm

Re: Text+, expression and string

PostMon Oct 05, 2015 4:27 pm

Hi Rony,

How close is the new documentation to be released? Looking to do a few things for the time being via python.

- Open an existing comp.
- Render the Savers in the comp

What are the python equivalents to do this? Can you point me to any existing documentation that might help? Any help is appreciated.

Thank you,

-f

Return to Fusion

Who is online

Users browsing this forum: No registered users and 35 guests