Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Counting number up per frame

  • Counting number up per frame

    Posted by Bhavesh Jadav on June 27, 2014 at 2:43 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;

    Bhavesh Jadav replied 11 years, 10 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy