Uninitialized variables that use clamp don't persist

Discuss problems and solutions.
Post Reply
mh175
Newbie
Posts: 23
Joined: 06 Oct 2012 16:42

Uninitialized variables that use clamp don't persist

Post 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.
nick_liine
Liine Staff
Posts: 285
Joined: 01 Oct 2010 11:06

Re: Uninitialized variables that use clamp don't persist

Post 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
lABl
Lemur Guru
Posts: 269
Joined: 09 Dec 2011 15:56
Contact:

Re: Uninitialized variables that use clamp don't persist

Post 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,
Attachments
Clamp Test.jzml
(3.29 KiB) Downloaded 52 times
Post Reply