Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Slider to choose values of: 1, 10, 100, 1000, 10000, 100000

  • Slider to choose values of: 1, 10, 100, 1000, 10000, 100000

    Posted by James Ronan on December 19, 2015 at 5:16 pm

    Hello,

    I want to use a slider to choose between values of: 1, 10, 100, 1000, 10000, 100000

    No numbers in between, just those.

    Is that possible? Would: clamp() do it?

    Thanks!

    James Ronan replied 10 years, 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • Kalleheikki Kannisto

    December 19, 2015 at 10:24 pm

    How about using the powers of ten? So slider would be clamped between 0 and 5 and the expression would make it 10^0, 10^1, 10^2, etc? That is:

    Math.pow(10,Math.floor(clamp(effect("Slider Control")("Slider"),0,5)))

  • James Ronan

    December 20, 2015 at 9:19 am

    Woohoo! Yes this works perfectly!

    Thanks so much! Very helpful!

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