Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Slider Control above 1 million

  • Slider Control above 1 million

    Posted by Chris Kelly on November 26, 2007 at 8:10 pm

    I tried a search, but couldn’t find anything. Is there a way to get the slider control to go above 1,000,000 in AE7? I’ve got a cool little script that I wrote a while ago to accurately throw in commas and keep the right number of decimals (even if the number is even)… but it relies on the slider control to animate. Of course, now I need it to go up to 1,500,000. Thanks for the help!

    Chris

    Oleg Tkachenko replied 6 years, 1 month ago 8 Members · 7 Replies
  • 7 Replies
  • Darby Edelen

    November 26, 2007 at 8:14 pm

    I believe the Point Control expression effect will allow much higher values than a Slider Control, just use the first value in the Point Control vector:

    effect(“Point Control”)(“Point”)[0];

    Darby Edelen
    Designer
    Left Coast Digital
    Santa Cruz, CA

  • Kyle Eilerman

    July 12, 2012 at 2:36 pm

    This is awesome! But how do you remove the numbers after the decimals?

  • Charlelie Oldco

    August 13, 2013 at 10:00 am

    Might be late for your answer,
    to remove the decimals,

    you have to add another expression before the expression”Point Control”
    this one is called Math.round so it would be

    Math.round(effect(“Point Control”)(“Point”)[0])

    don’t forget to add a parenthesis before effect and at the end of the expression to make Math.round work for the all expression

  • Harsha Samaraweera

    February 8, 2018 at 11:10 am

    Brilliant!
    One small thing though. Is there an expression to add commas to the point control value?
    (Ex: 69,000,000)

  • Gates Bradley

    May 29, 2018 at 8:31 pm

    I, too, would love to know how to add commas to this.

  • Matt Ryan

    January 8, 2020 at 4:49 pm

    This expression will give you commas as well as a number greater than 1,000,000

    num = Math.round(effect(“Point Control”)(“Point”)[0]);

    function addCommas(x) {
    return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, “,”);
    }

    addCommas(num)

  • Oleg Tkachenko

    April 16, 2020 at 12:55 pm

    This is awesome! How to add at the beginning of $. For example ($ 100,000) Thank you!

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