SCRIPTING PROBLEM, please help!!

Discuss Lemur and share techniques.
oldgearguy
Regular
Posts:315
Joined:02 Nov 2013 11:19
Re: SCRIPTING PROBLEM, please help!!

Post by oldgearguy » 12 Jun 2014 09:55

if the switch value is either 0 or 1, you can use math to do this:
cc = cc + (Switch.x * 8)

So if your switch is off, cc will just be cc (0, 1, 2, 3...). If it is on, it will be cc+8 (8, 9, 10, 11, ...)

pieeer
Newbie
Posts:19
Joined:02 Jun 2014 07:39

Re: SCRIPTING PROBLEM, please help!!

Post by pieeer » 12 Jun 2014 12:02

mmm, yes switch is 0-1

but a variable should be declared to store the values of the first 8 sliders and another one to store values of other 8 ?
otherwise values would "jump" i guess
Ipad4, liine lemur, corei7 4770K, radeon 6870, access virusB, novation sl25, Focusrite scarlett 18i20, Max/Msp, Touchdesigner, Live suite

pieeer
Newbie
Posts:19
Joined:02 Jun 2014 07:39

Re: SCRIPTING PROBLEM, please help!!

Post by pieeer » 13 Jun 2014 08:39

Hi
i saw a post where Softcore was talking about show/hide objects tecnique,
maybe that one could be perfect for this case, what you think?
the two sets of 8 sliders could be laid one on top of the other, and the script shows/hides the objects,
in my head this approach seems safer for the cc values, am i wrong?
Ipad4, liine lemur, corei7 4770K, radeon 6870, access virusB, novation sl25, Focusrite scarlett 18i20, Max/Msp, Touchdesigner, Live suite

Softcore
Regular
Posts:1639
Joined:04 Nov 2012 08:34

Re: SCRIPTING PROBLEM, please help!!

Post by Softcore » 13 Jun 2014 12:58

The show - hide approach, IMHO is better in this case because you won't have to deal with the difficulty of bi-directional feedback

Even better, create 8 sliders in one container, a second container with 8 more sliders and then use the show - hide trick opn the containers, not the sliders.

Post Reply