Skip to content

Instantly share code, notes, and snippets.

@n1ckfg
Created March 19, 2018 01:14
Show Gist options
  • Save n1ckfg/415b3a452278a25ba793156a05783b2a to your computer and use it in GitHub Desktop.
Save n1ckfg/415b3a452278a25ba793156a05783b2a to your computer and use it in GitHub Desktop.
AE counter expression formatted with commas
var val = "" + Math.round(effect("Point Control")("Point")[0]);
var returns = "";
for (var i=val.length-1; i>=0; i--) {
returns += val[Math.abs(val.length-1-i)];
if (i!=0 && i%3 == 0) returns += ",";
}
returns;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment