Question
Counting numbers via expression with non-animated text.
Hi all,
I am trying to make a counting number in my animation where the final number has to read "1.287 comments".
At the moment I am using FluxVFX's expression:
start=parseInt(thisLayer.text.sourceText="0");
end=parseInt(text.sourceText);
val=Math.round(easeOut(time, 1.5, 2.5,start, end));
s=""+ val;
if (s.length > 3){
s.substr(0, s.length -3) + "." + s.substr(-3);
}else{
s
}
What do I need to add for it to place "comments" behind my number?
Normally I would place it in a seperate text layer behind it, but then it doesn't move, since it's left alligned.
Thanks in advance!
Regards,
Kees
