Page 1 of 1

Making fader spring loaded?

Posted: 24 Feb 2013 00:47
by AdamD
I can't seem to figure out how to make a standard fader spring loaded. What I want to do is put my finger on the fader and the push it up, but then have it snap back to zero when I let go. I KNOW I have done this in the past, but for some reason I can't seem to figure out how. I want it so that I actually have to be touching the fader knob (so I don't accidentally slide it up) and I want it to track with my finger movement up or down, smoothly, but quickly. Can somebody remind me how to do that?

Thanks!

Re: Making fader spring loaded?

Posted: 24 Feb 2013 05:13
by brianc
Not sure about the fader, but if you use a multislider, go to "Behavior" and turn on Physics, set the height to 0 (or whatever you want your non-touched value to be), and you're set. You can tweak the tension and friction to get it snapping back as quickly or slowly as you'd like.

Re: Making fader spring loaded?

Posted: 24 Feb 2013 09:06
by Macciza
Set Fader Cursor Mode to 'Cap Only', Physics to 'None' . .
And add a script under the Fader :Execution on z , any - if (z==0) x=0);

Fader will only move when the Cap is touched and will reset to O when released . . .

Re: Making fader spring loaded?

Posted: 24 Feb 2013 13:40
by AdamD
Thanks. brianc, I got it to work using multislider. Macciza, I am fascinated with your suggestion, but I wasn't able to make it work. Any suggestions? I coped your script into the the script box, and set the behavior as you suggested. But I must be missing something. But still, if you'd be willing to teach me, I'd love to get into this side of Lemur! Have been too timid to try thus far.

Re: Making fader spring loaded?

Posted: 24 Feb 2013 14:28
by Macciza
Something like this . .
^^autoresetFader.jzlib
Auto resetting Fader
(2.15 KiB) Downloaded 155 times

Re: Making fader spring loaded?

Posted: 24 Feb 2013 14:36
by AdamD
Macciza,
that is so AWESOME!!!! Thank you so much. And by looking at what you did, I now understand what to do in the future. I guess I could go into a bunch of Lemur templates now and start reverse engineering scripts that I like?!

Thanks for taking the time to help me out.