Page 1 of 1

custom number counter

Posted: February 16th, 2020, 5:11 am
by s.kargar78

hi
I want to make a counter that automatically changes from zero to the number that I change the text.
I desperately need it.
thanks


Re: custom number counter

Posted: February 23rd, 2022, 12:33 pm
by tvaughan95

I set up a control slider (called Controls) with an Animation Length slider and a Numbers - Whole slider
In the Source Text layer:
beginTime = 0;
endTime = thisComp.layer("Controls").effect("Animation Length")("Slider");
startVal = 0;
endVal = thisComp.layer("Controls").effect("Numbers - Whole")("Slider");
AnLength = thisComp.layer("Controls").effect("Animation Length")("Slider");

Math.round(linear(time,beginTime,endTime,startVal,endVal))

This allowed me to set the time of the animation as well as the end number for the counter.
Hope this helps