Page 1 of 1

Sending menu item to text object....

Posted: 05 Dec 2013 03:01
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

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

Posted: 05 Dec 2013 04:51
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 . . .