FORUMS: list search recent posts

Counting number up per frame

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Bhavesh Jadav
Counting number up per frame
on Jun 27, 2014 at 2:43:31 pm

Hi,

Is there any way to count number up per frame instead of per second?
in following code, if the countDur = 1 then it directly jump
from startCount to endCount over one second & i am not getting any count up effect. Any solution?

if (time > 2 && time<18)
{
cl=thisComp.layer("Speed Control").effect("txt control")("Slider");
startCount = 0;
endCount = cl;
countDur = 1;
a = Math.round(linear(time,0,countDur,startCount,endCount));
random(a+1,a-1).toFixed(0);
}
else
value = 0;


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]