Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Dan Ebbert’s counter expression -> no rounding

  • Dan Ebbert’s counter expression -> no rounding

    Posted by Benjamin Thompson on April 21, 2015 at 1:27 am

    Hey everyone. I don’t know enough about expressions so I’m in need of your smarts. I’m making a counter / timer (clock of sorts) using Dan’s counter expression (https://www.motionscript.com/design-guide/counter.html) The issue I’m having is with rounding.

    Situation:
    Two layers, one for minute, another for seconds (designed that way). Counting up to 15 minutes over 15 minutes.
    Right now it’s rounding at .5 or 15 frames, so the minute number jumps to 1 at :30.

    Is there a better way to go about this?

    Kevin Camp replied 11 years ago 2 Members · 1 Reply
  • 1 Reply
  • Kevin Camp

    April 23, 2015 at 10:52 pm

    it would help to see the expression, but if there is a Math.round() function on the minutes, you’d want to change that to Math.floor() to prevent the rounding.

    Kevin Camp
    Art Director
    KCPQ, KZJO & KRCW

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