Sending menu item to text object....

Discuss Lemur and share techniques.
Post Reply
stevendieveney
Newbie
Posts: 16
Joined: 08 May 2013 14:27

Sending menu item to text object....

Post by stevendieveney »

I wonder if anyone can help me on this. I'd like to send the selected item from a menu to a text object. Say I've got a menu with a bunch of patch names and simply want a larger text object to reflect the current selection so as to have a second, larger reference. Does anyone know how to do this?

Hugely appreciatedl

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

Re: Sending menu item to text object....

Post by Macciza »

Hi

Just write a script in the Menu (call it setText or similar) executing on 'selection' (i.e. just type in selection, no ' ') . . .

setattribute(findobject('Text'),'content',getattribute(Menu, 'items')[selection]); //'Text' is name of Text object , Menu is name of Menu object . . .
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