SET A BUTTON SCRIPT FOR MULTIPLE SLIDERS

Discuss problems and solutions.
Post Reply
jenz
Newbie
Posts: 46
Joined: 21 Jan 2012 06:02

SET A BUTTON SCRIPT FOR MULTIPLE SLIDERS

Post 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!!
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: SET A BUTTON SCRIPT FOR MULTIPLE SLIDERS

Post 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) 
;)
jenz
Newbie
Posts: 46
Joined: 21 Jan 2012 06:02

Re: SET A BUTTON SCRIPT FOR MULTIPLE SLIDERS

Post by jenz »

Thanx a lot!!!! You have solved another problem in my patch!!! So happy... I'm learning...
Post Reply