Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects need numbers to scrool up from 0 to 90 million

  • need numbers to scrool up from 0 to 90 million

    Posted by Heather Crank on January 22, 2008 at 12:23 am

    HELLO!

    Does anyone know if Is there a way to scroll from 0 to 90 million in ae? The numbers effect doesn’t seem to go that high. Is there a way to use a comma instead or a period or is that something that needs to be fudged?

    Thank you!!!!

    H

    Heather Crank replied 18 years, 3 months ago 4 Members · 14 Replies
  • 14 Replies
  • Joe Moya

    January 22, 2008 at 1:16 am

    https://library.creativecow.net/articles/rabinowitz_aharon/Odometer_1.php

    3 part tutorial will probably give you an idea…

    …to fine this… all it took was a quick search of the site or scan the tutorials

  • Heather Crank

    January 22, 2008 at 1:31 am

    Thanks Joe for the info.

    H

  • Sam Moulton

    January 22, 2008 at 7:21 am

    Add a expression control point control to a blank text layer then copy and paste this expression into source text. Just set a keyframe for the Point Control and type the values in the first field. Here’s the expression:

    val = effect(“Point Control”)(“Point”)[0];
    numDec = 2; // digits to right of decimal
    numDigit = 9; // digits to left of decimal

    if (val < 0) sign = "-" else sign = ""; s = Math.abs(val).toFixed(numDec); while (s.length < numDigit + numDec + 1) s = "0" + s; sign + s; if (numDec > 0){
    decimals = s.substr(-(numDec + 1));
    s = s.substr(0,s.length – (numDec + 1));
    }
    outStr = s.substr(-s.length, (s.length-1)%3 +1);
    for (i = Math.floor((s.length-1)/3); i > 0; i–){
    outStr += “,” + s.substr(-i*3,3);}

  • Heather Crank

    January 22, 2008 at 3:31 pm

    Thanks Sam. I’ll give that a shot!

    H

  • Heather Crank

    January 22, 2008 at 3:50 pm

    Thank you everyone that responded to my cry for help, I ended up using an expression from Dan Ebberts: https://www.motionscript.com/design-guide/counter.html

    and it’s working like a charm. I’ve been able to figure how out to adjust the timing, and what number begins the scrolling and what number ends the scrolling. But, being new to expressions, I haven’t been able to figure out how to have the 1st number that beings the scrolling (it’s a 0) to start on the far right, leaving the $ stationary on the far left for the duration of the scroll, while the rest of the numbers fill right to left in as they increase numerically.

    Anyone have any ideas, or good with expressions?

    Thank you!

    Heather

  • Kevin Camp

    January 22, 2008 at 4:25 pm

    try setting dollarSign to ‘false’. then add your a separate $ where you need it… will that work?

    Kevin Camp
    Senior Designer
    KCPQ, KMYQ & KRCW

  • Heather Crank

    January 22, 2008 at 4:26 pm

    Brilliant!

    Thanks Kevin!

  • Heather Crank

    January 22, 2008 at 4:37 pm

    ok, so this ALMOST worked. The problem is that when the numbers increase they move to the right and I need them to move to the left. Any idea how to create this? So close!

    H

  • Kevin Camp

    January 22, 2008 at 5:27 pm

    the code is pasted into a text layer’s source text, correct (i haven’t used this expression, but i assume that it would need to go into the source property of a text layer)?

    if so, you should be able to format text with the character and paragraph palettes… try just setting the paragraph settings to use right justification…

    Kevin Camp
    Senior Designer
    KCPQ, KMYQ & KRCW

  • Heather Crank

    January 22, 2008 at 5:30 pm

    Great suggestion! I’ll try that now.

    Thank you for taking the time!

    H

Page 1 of 2

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