Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions counter with intervalls?

  • counter with intervalls?

    Posted by Susanne Schuda on July 12, 2020 at 8:36 am

    Hoi,

    i have like no idea of java-script and need help.
    i am using the counter in after effects and would need an expression to make the counter jump from 10 to 20 to 30 and so on. the animation is very short and should go from 0 to 360, when the counter shows every number you can not read anything…

    thnxs a lot!!!

    Chaz Chester replied 5 years, 9 months ago 2 Members · 1 Reply
  • 1 Reply
  • Chaz Chester

    July 12, 2020 at 2:57 pm

    There’s probably a better way of doing this, but here’s one solution. When you put this expression in the Source Text property of a text layer, it’ll display an integer and a 0 based on the time. The “m” variable is just a multiple, so if you need to go faster, just set “m” to a bigger number.

    m = 1;
    if (time*m >= 1) {Math.floor(time*m)+”0″} else {0}

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