SelectInterface() by name?

Discuss Lemur and share techniques.
Post Reply
ForestCat
Regular
Posts:59
Joined:02 Mar 2012 21:00
SelectInterface() by name?

Post by ForestCat » 23 Aug 2012 15:42

I have an "index" page of buttons which are used to select interface pages, and there are a lot of them. I would prefer to give my interfaces meaningful names, i.e. VolFaders, TransCtrl, etc, so when I need to modify something, it's easy to find in nice alphabetical order in the Project pane. All well and good until I need to add a new interface, and that screws up everything on my index button page, since SelectInterface(4) doesn't point to the same interface if the new one happens to fall before it in the alphabet sort. Yes, I know I can prefix my meaningful interface names with 000, 001, 002, etc., but that looks like crap on the tabs, and is pretty crude by 2012 programming conventions. Why can't SelectInterface() work with the literal interface name? How can I add new interfaces without screwing up my index page?

axel_liine
Liine Staff
Posts:126
Joined:14 Dec 2011 12:12

Re: SelectInterface() by name?

Post by axel_liine » 24 Aug 2012 08:14

Hi,
Indeed, SelectInterface only accepts numerical values at the time. Adding support for interface names as arguments sounds like a good idea, we're adding this to the wishlist and will let you know when it's available.

ForestCat
Regular
Posts:59
Joined:02 Mar 2012 21:00

Re: SelectInterface() by name?

Post by ForestCat » 24 Aug 2012 11:51

Cool. It would be very useful w/ SelectTab() for the same reasons.

Macciza
Regular
Posts:1325
Joined:07 Dec 2011 04:57
Location:Sydney, Australia.

Re: SelectInterface() by name?

Post by Macciza » 24 Aug 2012 15:30

One option might be to set up expression that map the names you want to numbers to use as the index
Or alternately to give each interface an independent 'interface' variable which you would set as you add more interfaces . . .
Hope that helps . . .
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]

Post Reply