pad and custombutton change states

Discuss Lemur and share techniques.
Post Reply
frz
Newbie
Posts: 7
Joined: 08 Jun 2012 19:13

pad and custombutton change states

Post by frz »

As I am pretty sure this is a simple question for many people, first, excuse me, I am a newbie.
So, I want a custombutton to change his state each time I touch a pad (I do not want a clone : when I press the pad, cbutton turn off and stay off, when I hit again the pad, cbuttom turn on and stay on).
It seems simple, but I spend time on my lemur, and doesn't find the good script by myself.
Any help ?
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: pad and custombutton change states

Post by Softcore »

Here's an example! The script "looks up" the state of the custom button and changes it accordingly...Notice the detail here that the script is executed only when x rises from 0 (up arrow, only the press of the pad is "caught", not the release)
pad-changes-button.jzml
(3.5 KiB) Downloaded 77 times
frz
Newbie
Posts: 7
Joined: 08 Jun 2012 19:13

Re: pad and custombutton change states

Post by frz »

Oh thanks very much ! I was so into scripting that I didn't even think the answer was in the execution of the script. Sometimes, I do not see what is right in front of my nose ;-)
Post Reply