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<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.
array = [7609,7758,7916,8063,8217,8382, …
without making it into a string and then splitting it.array = [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] l=array.length; sek = Math.floor(time); if(sek<l){ array[sek]; }else{ "End of Data"; }