Page 1 of 1
SET A BUTTON SCRIPT FOR MULTIPLE SLIDERS
Posted: 17 Dec 2012 13:37
by jenz
Hello all!!!
Suppose I have 8 sliders and want to have one button that sets an atribute grid on and off for the 8 sliders, how do you do that?
Thanx!!
Re: SET A BUTTON SCRIPT FOR MULTIPLE SLIDERS
Posted: 17 Dec 2012 20:29
by Softcore
add a switch in your project
add script in switch
On Expression x
Code: Select all
setattribute(Fader1, 'grid', x);
setattribute(Fader2, 'grid', x);
etc etc
where Fader1, Fader2, etc are the names of your fader objects. The logic is that the switch's "x" takes the values 0 and 1 on each switch press hence it toggles on off the attribute.
optional: read the last pages of the manual where every "setattribute" of every object is referenced! Whatever is in the "attributes" category for every object can be set by the name and values presented there and the syntax:
Code: Select all
setattribute(object_name, 'attribute_name', value)
Re: SET A BUTTON SCRIPT FOR MULTIPLE SLIDERS
Posted: 17 Dec 2012 21:59
by jenz
Thanx a lot!!!! You have solved another problem in my patch!!! So happy... I'm learning...