Page 3 of 3
Re: SCRIPTING PROBLEM, please help!!
Posted: 12 Jun 2014 09:55
by oldgearguy
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, ...)
Re: SCRIPTING PROBLEM, please help!!
Posted: 12 Jun 2014 12:02
by pieeer
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
Re: SCRIPTING PROBLEM, please help!!
Posted: 13 Jun 2014 08:39
by pieeer
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?
Re: SCRIPTING PROBLEM, please help!!
Posted: 13 Jun 2014 12:58
by Softcore
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.