ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

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

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
James Ronan
Slider to choose values of: 1, 10, 100, 1000, 10000, 100000
on Dec 19, 2015 at 5:16:46 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!


Return to posts index

Kalle Kannisto
Re: Slider to choose values of: 1, 10, 100, 1000, 10000, 100000
on Dec 19, 2015 at 10:24:47 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)))


Return to posts index

James Ronan
Re: Slider to choose values of: 1, 10, 100, 1000, 10000, 100000
on Dec 20, 2015 at 9:19:28 am

Woohoo! Yes this works perfectly!

Thanks so much! Very helpful!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]