ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Slider Control above 1 million

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Slider Control above 1 million
on Nov 26, 2007 at 8:10:23 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!


Return to posts index

Darby Edelen
Re: Slider Control above 1 million
on Nov 26, 2007 at 8:14:10 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
Left Coast Digital
Santa Cruz, CA

Return to posts index

Kyle Eilerman
Re: Slider Control above 1 million
on Jul 12, 2012 at 2:36:57 pm

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

Return to posts index

Charlelie OldCo
Re: Slider Control above 1 million
on Aug 13, 2013 at 10:00:58 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

Return to posts index

Harsha Samaraweera
Re: Slider Control above 1 million
on Feb 8, 2018 at 11:10:14 am

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

Return to posts index

Gates Bradley
Re: Slider Control above 1 million
on May 29, 2018 at 8:31:16 pm

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

Return to posts index

matt ryan
Re: Slider Control above 1 million
on Jan 8, 2020 at 4:49:41 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, ",");


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 All Rights Reserved