Page 1 of 1

Text+, expression and string

PostPosted: Mon Sep 07, 2015 9:02 am
by phantom-studio
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 ?

Re: Text+, expression and string

PostPosted: Tue Sep 08, 2015 11:04 pm
by Daniel Moore
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

Re: Text+, expression and string

PostPosted: Wed Sep 09, 2015 9:44 am
by phantom-studio
ok thanks ,
Is there a lua or python documentation for fusion ?

Re: Text+, expression and string

PostPosted: Wed Sep 09, 2015 5:10 pm
by Rony Soussan
New docs are in the works, very close.

Re: Text+, expression and string

PostPosted: Mon Oct 05, 2015 4:27 pm
by Frank Gallego
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