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!!
SET A BUTTON SCRIPT FOR MULTIPLE SLIDERS
Re: SET A BUTTON SCRIPT FOR MULTIPLE SLIDERS
add a switch in your project
add script in switch
On Expression 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:
add script in switch
On Expression x
Code: Select all
setattribute(Fader1, 'grid', x);
setattribute(Fader2, 'grid', x);
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
Thanx a lot!!!! You have solved another problem in my patch!!! So happy... I'm learning...