make object inactive

Discuss Lemur and share techniques.
Post Reply
UniFly
Newbie
Posts: 19
Joined: 28 Dec 2013 06:23

make object inactive

Post by UniFly »

Hi,

How to make object inactive(off) with special button? Maybe by using On expression script line? I guess it will be quite simple task, but can't find the way some time.
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: make object inactive

Post by Softcore »

Do you wish to switch an object off or do you want it to NOT respond to touches?
UniFly
Newbie
Posts: 19
Joined: 28 Dec 2013 06:23

Re: make object inactive

Post by UniFly »

I'm talking not about object hiding and showing like in this example:

::: On Expression :::
if(x== 0) {
show(myProgramChange,0);
} else if (x == 1) {
show(myProgramChange,1);
}

I want to switch object off/disable MIDI data.
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: make object inactive

Post by Softcore »

There are many ways to achieve this.....

Either use a custom expression that can be ignored

Or use a custom midi out with a custom expression that can be ignored

or use a scripted output - ctlout(target, cc, val, channel)

or just show-hide a canvas object ABOVE the object you want to disable
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: make object inactive

Post by Softcore »

And here are the four examples - each one has its pros and cons.....figure them out! ;)
Attachments
4ways-to-disable-objects-output.jzml
(17.11 KiB) Downloaded 117 times
UniFly
Newbie
Posts: 19
Joined: 28 Dec 2013 06:23

Re: make object inactive

Post by UniFly »

Thanks again n again Softcore!
;)

OnExpression script seems better, it will not send 0 value when enabling.
Post Reply