How to: make a number box only display multiples of two
I have a number box with a range of 32. In presentation mode, I would like a user to be able to alter this number box by dragging the mouse, however, I only ever want the user to be able to select multiples of 2. i.e dragging the box down from 32 will display 30, 28 then 26 etc. Is there anything I can do to get around this?
Perhaps this is the most elegant way to achieve this.
hi,
I hope this will help you :
put lcd in background or ubutton in foreground, and use those to get mousevalues.
scale mouse data to int, then *2
That is exactly what I am looking for Pierre G.
Broc I think you got the 'most elegant way'...
Awesome! I really need to explore more of the live objects. I use live.gain almost exclusively now, but I haven't really explored the others. Thanks for posting that!
Very cool that you can set the steps in live.numbox!
But...can Pierre or anyone else explain why his patch works the way it does? It's confounding my brain...if the result of the "if" statement comes out, shouldn't there be a stack overflow created?
Take a closer look at his patch, there is a hidden element that helps achieve this result :)
-Be
wow, I am an idiot :D
no wonder I couldn't figure out how the number box was responding to clicks when "ignore click"... sheesh, it was the other one. DOH!