Custom Animated Counter in Adobe After Effects I'm trying to create a counter that automatically updates to the next value once per second.  I have that part figured out:

string = "7609,7758,7916,8063,8217,8382,8545,8701,8871,9049,9241,9386,9533,9722,9911,10055,10196,10321,10327,10451,10646,10854,11005,11195,11411,11583,11740,11904,12051,12177,12308,12404,12484,12558,12637,12725,12805,12882,12982,13088,13212,13340,13486,13674,13840,";
array = string.split(",")
l=array.length;

sek = Math.floor(time);

if(sek&lt;l){
            array[sek]; 
}else{
            "End of Data";
}


However, now I'm trying to animate it.  I've made simple counters that count from a starting number to a final number using Slider Control and keyframes, but is there a way to automate it?  The final project is going to have multiple counters going at the same time, with around 750 points of data in total, so automating would save so much time.
This will animate between the values in the array, hitting each value precisely at the second mark though the viewer won't be able to notice because the numbers will be moving too fast.



var dataArr = [7609,7758,7916,8063,8217,8382,8545,8701,8871,9049,9241,9386,9533,9722,9911,10055,10196,10321,10327,10451,10646,10854,11005,11195,11411,11583,11740,11904,12051,12177,12308,12404,12484,12558,12637,12725,12805,12882,12982,13088,13212,13340,13486,13674,13840]; 
var sek = Math.floor(time);
if (sek &lt; dataArr.length - 1){
   Math.floor(linear(time-sek, dataArr[sek], dataArr[sek+1]));
} else {
    "out of data";
}


For bonus points you can add commas or culture-appropriate separators by replacing the line that starts with Math.floor(linear … with:



Math.floor(linear(time-sek, dataArr[sek], dataArr[sek+1])).toLocaleString("en-AU");


where you replace "en-AU" with your locale, e.g. for Chinese Decimal units use "zh-Hans-CN-u-nu-hanidec" and it will look like: 七,六〇九