[Closed] Tie a Slider's value to a script?
Hey Everyone
I’m trying something out and so far feeling a little stumped on one thing which I’m not even sure i can do.
I have several Slider manipulators in my view port all controlling separate things. What i’d like to do is add another slider in, and have it run a script when the value changes. It would only be between 0 and 1, and would just do a check when it changes ie
If Value = 1 do this
Else do this
So is it possible to add a script controller into a slider manipulator?
What i’m wanting it to do, is if i slide it to 1 it hides all other sliders in the view port, but if it’s 0 then they’re all visible, and actually scripting that’s easy it’s just i don’t know how to have the slider control that?
I tried to just to a wire control to the other slider but i’m only given options to it’s value, and mix/max val’s, not it’s hide state or anything else.
Thanks!
could you use something like this?
for i in objects do
(
if classof i == sliderManipulator do
(
case i.hide of
(
true:i.hide =false
false:i.hide=true
)
)
)