Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression Counter with decimals

  • Expression Counter with decimals

    Posted by Bert Beltran on April 29, 2014 at 11:47 pm

    Im looking to create a number counter. I have it set up with this expression (effect(“Slider Control”)(“Slider”)).

    I have a text layer and it has a expression slider and then I pick whip the source text to the slider and I got the expression above. I added my key frames and now I’m getting my number counter but with a long decimal number.

    Im wanting to short it down so it counts like this: 1.25-1.26-1.27-1.28–1.99-2.00-2.01-2.02 and so on… Im looking to have it start at 8 and end at 0.

    Hopefully its just a matter of adding some type of expression to the current expression that I have.

    Muchos Thank You’s

    Dan Ebberts
    replied 12 years ago
    2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    April 30, 2014 at 2:06 am

    See if this is what you’re looking for:

    effect(“Slider Control”)(“Slider”).value.toFixed(2)

    Dan

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