In After Effects, I am trying to programmatically generate numbers that count up. But when the numbers start counting up, it is pushing the units to the right.
How I can make units position fixed (right aligned)?
Here is the code I'm using:
startT = 0; endT = 8; beginVal = 143; endVal = 50143; t =Math.round(linear(time,startT,endT,beginVal,endVal)); t += ""; t.replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1 ");