Skip to main content
Inspiring
April 29, 2019
Answered

Slider Effect cannot go over 1 million

  • April 29, 2019
  • 2 replies
  • 24107 views

as the title suggest Slider Effect cannot go over 1 million. this is very annoying and hard to understand in 2019. (also unbelievably number effect cannot go over 30.000)

i am tring do animate a youtube view counter that goes over 1 million.

using this expression on a empty text layer

n = 0+effect("Slider Control")("Slider");           < THIS IS THE SLIDER CONTROL

s = "" + n;

str = s.substr(-s.length, (s.length-1)%3 +1);

for (i = Math.floor((s.length-1)/3); i > 0; i--){

str += "," + s.substr(-i*3,3);

}

str

Any work around? or alternative tecniques?

    Correct answer Rick Gerard

    Google Dan Ebbert’s universal timer. Second option, don’t try to do everything on one layer. Try using three text layers, one for the commas, one for the first thousand, the third for the millions.  Unless you’re actually counting teal and have more than about 6 million frames, there’s no way in the world anyone will be able to tell your counter doesn’t show every digit.

    Another option, if you want to count to 1,000,000 over 10 seconds just calculate on multiplier for your slider or just use time.

    10 seconds = 300 frames, 1,000,000 / 300 = 333.3

    So just multiply the result of your expression by 333 and animate the slider from 0 to 3333.3 over 10 seconds.

    2 replies

    Participant
    August 4, 2020

    I use the Point Control effect and add this expression to the Source Text:

    s = "" + Math.round(effect("Point Control")("Point")[0]);
    s.replace(/\B(?=(\d{3})+(?!\d))/g, ",");

    Works for me and is simpler than multiplying the slider value.

    Participant
    September 12, 2022

    Thanks Katie!  This expression and effect works a treat!  I got to the 3 million easy!

    Participant
    October 10, 2022

    this expression doesn't work for me ? 😞 

     

    Legend
    April 29, 2019

    If you don't need units precision, just multiply the slider value by a factor.

    Rick GerardCommunity ExpertCorrect answer
    Community Expert
    April 29, 2019

    Google Dan Ebbert’s universal timer. Second option, don’t try to do everything on one layer. Try using three text layers, one for the commas, one for the first thousand, the third for the millions.  Unless you’re actually counting teal and have more than about 6 million frames, there’s no way in the world anyone will be able to tell your counter doesn’t show every digit.

    Another option, if you want to count to 1,000,000 over 10 seconds just calculate on multiplier for your slider or just use time.

    10 seconds = 300 frames, 1,000,000 / 300 = 333.3

    So just multiply the result of your expression by 333 and animate the slider from 0 to 3333.3 over 10 seconds.

    Inspiring
    April 29, 2019

    thx guys, tried the multiplication tricks and seems to be working fine.

    but in the meantime i did it in c4d and just rendered the sequence, one would think ae should be good for this kind of tasks, but personally i find c4d much better...much more versatile and intuitive

    but thx!