Adobe After Effects Forum
Adding a symbol to this expression
Adding a symbol to this expression
by Simon Jones on Nov 19, 2019 at 2:53:07 pm

I'm using the following expression to generate values for counters used within a game (thanks to Dan Ebbert and Walter Soyka) :

frames = 15;
clockStart = 1;
rate = (1/thisComp.frameDuration) / frames;
clockTime = clockStart + rate*(time - inPoint);
Math.floor(clockTime);

The question I have is that I wish to add a £ or $ symbol in fornt of the generated number. Anyone know how i'd do that?

Cheers

Simon

it's all about the X and the Y


Re: Adding a symbol to this expression
by Cassius Marques on Nov 19, 2019 at 4:52:55 pm

If its a field that accepts strings you just need to add ("any string") + before the result (which is Math.floor...)

such as
frames = 15;
clockStart = 1;
rate = (1/thisComp.frameDuration) / frames;
clockTime = clockStart + rate*(time - inPoint);
("$")+Math.floor(clockTime);


Cassius Marques
www.zapfilmes.com





© CreativeCOW.net