ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

counter with intervalls?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Susanne Schuda
counter with intervalls?
on Jul 12, 2020 at 8:36:25 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!!!


Return to posts index

Chaz Chester
Re: counter with intervalls?
on Jul 12, 2020 at 2:57:08 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}


Return to posts index

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