Hello everyone,
i am very new to lemur. I have been working with lemur since two days.
I have two questions. The first is:
how can i build an array of buttons so that they act together? They should all turn OFF if one button is selected. Like the "solo" function on a mixer console.
I have tried to write a simple script like:
decl valb1, valb2;
if valb1== 1
{
valb2==0;
}
i think is do not understand the functionality of the custom button...
Second question is: Is there an alternative to ad-hoc networks? Because my android tablet is only connecting to lemur via wlan.
best regards knoeterich
Custom Button Problem
Re: Custom Button Problem
Each pad, switch and custom button of Lemur objects, has a "x" built in expression (variable).
To control the states of those button you need to change this "x" expression.
To REFERENCE those buttons you need to use the hierarchy structure of the project - so for example if your custom button is named "Mute" and is inside the Container named Buttons.....to turn it off, using a script residing in ANOTHER object, you need to create a script that will be "executed" on Expression (of the second object, the "controller" one) and type:
Buttons.Mute.x = 0;
For examples of these notions visit the "beginner scripts" link found in my signature!
To control the states of those button you need to change this "x" expression.
To REFERENCE those buttons you need to use the hierarchy structure of the project - so for example if your custom button is named "Mute" and is inside the Container named Buttons.....to turn it off, using a script residing in ANOTHER object, you need to create a script that will be "executed" on Expression (of the second object, the "controller" one) and type:
Buttons.Mute.x = 0;
For examples of these notions visit the "beginner scripts" link found in my signature!
Re: Custom Button Problem
By the way, judging from your question, perhaps what you need to accomplish can be done WITHOUT scripting: use a Switches object, adjust columns and rows to taste and set it to "radio" mode.