Troubleshooting

SET A BUTTON SCRIPT FOR MULTIPLE SLIDERS

Started by jenz on .

Sign in or create an account to join the conversation.

3 posts

add a switch in your project
add script in switch

On Expression x
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:
setattribute(object_name, 'attribute_name', value) 
;)