I am able to obtain the selected index from the [live.menu] object but is it possible to get the value of the selected item?
livemenu = this.patcher.getnamed("sn_livemenu");
you could get the menu items which returns an array and then use the menu index to get the menu text.
var livemenu = this.patcher.getnamed("theMenu");
var a = livemenu.getattr(‘items’);
var b = livemenu.getvalueof();
Log in to reply
C74 IN YOUR INBOX
C74 RSS Feed | © Copyright Cycling '74 | Terms & Conditions
Let us tell you about notable Max projects, obscure facts, and creative media artists of all kinds.