SelectInterface() by name?
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?
-
- Liine Staff
- Posts:126
- Joined:14 Dec 2011 12:12
Re: SelectInterface() by name?
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.
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.
Re: SelectInterface() by name?
Cool. It would be very useful w/ SelectTab() for the same reasons.
Re: SelectInterface() by name?
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 . . .
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]
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]