Create a text layer(shift+cntl+alt+T) and make it right justified. Add the effect Expressions Control > Angle Control to the effect.
Twirl open the text layer and alt click the source text stopwatch to open the expression dialogue and add the following expression(courtesy of Dan Ebberts). I used comma’s instead of spaces, but if you want spaces in the line “outStr += “,” + s.substr(-i*3,3)” replace the comma in quotes with space: numDecimals = 2;
commas = true;
dollarSign = true;
dur = 4;
s = effect("Angle Control")("Angle").value.toFixed(numDecimals);
prefix = "";
if (s[0] == "-"){
prefix = "-";
s = s.substr(1);
}
if(dollarSign) prefix += "$";
if (commas){
decimals = "";
if (numDecimals > 0){
decimals = s.substr(-(numDecimals + 1));
s = s.substr(0,s.length - (numDecimals + 1));
}
outStr = s.substr(-s.length, (s.length-1)%3 +1);
for (i = Math.floor((s.length-1)/3); i > 0; i--){
outStr += "," + s.substr(-i*3,3);
}
prefix + outStr + decimals;
}else{
prefix + s;
}
I made an example project if anything is unclear: 6633_moneycounter.aep.zip
Johnny Cuevas, Editor
Thinkck.com
“I have not failed 700 times. I have succeeded in proving that those 700 ways will not work. When I have eliminated the ways that will not work, I will find the way that will work.”
—THOMAS EDISON on inventing the light bulb.