Interface-level scripts

Discuss problems and solutions.
Post Reply
jaytee
Newbie
Posts: 4
Joined: 08 Oct 2014 16:57

Interface-level scripts

Post by jaytee »

I tried searching for this, but I couldn't come up with a combination of search terms that was specific enough to get the information I needed. Hopefully it hasn't been discussed too much already.

Basically, I have multiple switches on an interface, and want to send one sysex message that depends on the states of these switches any time one of them changes state. Seems like the perfect application for an interface-level script: write the script to check all the switches and devise the appropriate sysex string to send, then trigger the script from each of the switches any time one of them changes state.

The problem is, the editor doesn't seem to want to let me create an interface-level script. I can create project-level scripts, and object level scripts, but when I have an interface selected in the project window and hit "new script" it defaults to a new project-level script. I suppose it would be easy enough to use a project-level script, but I have multiple mostly-identical interfaces in this project that will all need to do the same thing with their switches, so it'd be nice to have separate scripts localized to each interface.

Am I missing something basic? Is what I want to do possible? Does anyone have any ideas for alternative ways to implement this?

I suppose I could have a single project-level script that first evaluates which interface is active before evaluating the states of the switches in question, but this seems like a complex solution.

Any help is greatly appreciated!
jaytee
Newbie
Posts: 4
Joined: 08 Oct 2014 16:57

Re: Interface-level scripts

Post by jaytee »

I tried a few more searches and found out that other folks have had the same issue... So at least I know it's not just me.

It sounds like the consensus is that it's just not possible: one must either create a project-level script or put everything in their interface inside of a container and make an object-level script. Does this sound accurate?

The only reason I'm not satisfied with this answer is that the manual very clearly states (page 71) that "scripts may be be associated...across...a specific interface" and this simply doesn't seem to be the case. Is this a bug then?
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: Interface-level scripts

Post by Softcore »

You are right, you cant nest scripts per interface.

As for the manual, frankly I had never noticed!
Post Reply