Troubleshooting
SET A BUTTON SCRIPT FOR MULTIPLE SLIDERS
Started by jenz on .
Sign in or create an account to join the conversation.
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!!
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!!
add a switch in your project
add script in switch
On Expression 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:

add script in switch
On Expression x
setattribute(Fader1, 'grid', x);
setattribute(Fader2, 'grid', x);
etc etcwhere 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:
setattribute(object_name, 'attribute_name', value)
Thanx a lot!!!! You have solved another problem in my patch!!! So happy... I'm learning...