make object inactive

Discuss Lemur and share techniques.
Post Reply
UniFly
Newbie
Posts:20
Joined:28 Dec 2013 06:23
make object inactive

Post by UniFly » 03 Jun 2014 20:20

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:1639
Joined:04 Nov 2012 08:34

Re: make object inactive

Post by Softcore » 04 Jun 2014 11:02

Do you wish to switch an object off or do you want it to NOT respond to touches?

UniFly
Newbie
Posts:20
Joined:28 Dec 2013 06:23

Re: make object inactive

Post by UniFly » 04 Jun 2014 18:10

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:1639
Joined:04 Nov 2012 08:34

Re: make object inactive

Post by Softcore » 04 Jun 2014 18:19

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:1639
Joined:04 Nov 2012 08:34

Re: make object inactive

Post by Softcore » 04 Jun 2014 18:32

And here are the four examples - each one has its pros and cons.....figure them out! ;)
Attachments
4ways-to-disable-objects-output.jzml
(17.11KiB)Downloaded 127 times

UniFly
Newbie
Posts:20
Joined:28 Dec 2013 06:23

Re: make object inactive

Post by UniFly » 05 Jun 2014 15:09

Thanks again n again Softcore!
;)

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

Post Reply