Skip to content

Instantly share code, notes, and snippets.

@MarissaJ
Created November 11, 2019 16:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarissaJ/6d789fbacdab31635d0350c9af944e09 to your computer and use it in GitHub Desktop.
Save MarissaJ/6d789fbacdab31635d0350c9af944e09 to your computer and use it in GitHub Desktop.
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 > 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