Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Infinity counter

  • Posted by Dan Smith on December 15, 2019 at 10:48 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;
    else
    counter = Math.floor(time);

    Dan Ebberts replied 6 years, 8 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    December 15, 2019 at 4:43 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:

    Math.floor(time%10);

    Dan

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