• | 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!
• | 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)))
• | 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!