Page 1 of 1

Uninitialized variables that use clamp don't persist

Posted: 22 Jun 2014 01:09
by mh175
I understand the way to save a variable value is by leaving it uninitialized, so that when I shut-down Lemur, the last value persists when Lemur is loaded up again--- so long as I saved the changes on the iPad.

But when I use "clamp" to restrict a value, the variable always resets to 0 on startup. I need to be able to save a value's state for recall, but also restrict it to a range of -1 to 8.

Re: Uninitialized variables that use clamp don't persist

Posted: 17 Jul 2014 17:41
by nick_liine
Can you give me a clear example, ideally with an attached .JZML and step-by-step instructions to reproduce the issue?

Please send the info to support@liine.net

Thanks,
NB

Re: Uninitialized variables that use clamp don't persist

Posted: 19 Jul 2014 21:31
by lABl
Hi mh175,

May I ask what type of object are you using ? I can't reproduce it with a MultiSlider (I've attached example), However there is a special behavior with Faders that doesn't trig scripts if you save the template with Fader.x = 0.

Cheers,