Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Animate Numbers Counting up with One Comma in After Effects
start=parseInt(thisLayer.text.sourceText="0");
end=parseInt(text.sourceText);
val=Math.round(easeOut(time, startTime, 2,start, end));
s=""+ val;
if (s.length > 6){
s.substr(0, s.length -6) + "," + (s.substr(1, s.length -4) + "," + s.substr(-3));
}else{
if (s.length > 3){
s.substr(0, s.length -3) + "," + s.substr(-3);
}else{
s
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.