FORUMS: list search recent posts

Adding a symbol to this expression

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Simon Jones
Adding a symbol to this expression
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


Return to posts index

Cassius Marques
Re: Adding a symbol to this expression
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
http://www.zapfilmes.com


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]