ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Infinity counter

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Dan Smith
Infinity counter
on Dec 15, 2019 at 10:48:20 am

Hey everyone!

I try to create infinity counter with AE expressions.
Thought it would be easy, but no)
I need to reset timer every 10 seconds.
For e.x. try to use the ratio of the number and if statement:
It works every 10 sec. but then the counter continues to increase. 1,2,3...0,11,12,12...0 and etc.

if (!(counter%10))
counter = 0;
counter = Math.floor(time);

Return to posts index

Dan Ebberts
Re: Infinity counter
on Dec 15, 2019 at 4:43:40 pm

I'm not sure if you're aware that expressions can't retain any info from frame to frame (apologies if you already knew that). But this should work:



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 All Rights Reserved