Is it possible to Update element in live.menu

Masoud Meftahpour's icon

Hello dear all,

I have two live.menu,

the range in first one is Op_A and Op_B,

I want by changing the selection in condition 1 , range of Condition 2 change

FX

IF Condition 1=Op_A -> Condition 2 range change to Op_1,Op_2,Op_3

IF Condition 1=Op_B -> Condition 2 range change to Op_4,Op_5

I could create mapping with jsui, but how to add new mapping to the Condition 2 item list?

mizu's icon

maybe with scripting to thispatcher

Max Patch
Copy patch and select New From Clipboard in Max.

hth

zz

Masoud Meftahpour's icon

Thank you Mizu,

Still I don't have a dynamic items in dropbox, but this solution could works with static items.

In this case, I should hide other drop box base on the first dropbox selection, I did it with "if" and it works, (the first drop box has 7 item, and each connected to other 7 subgroup.

(Like first dropbox is country name and second one is the cities name on first selected item, so by changing the country name, the second selection item list should be updated)

Thank you again for kind help,

TFL's icon

You can use the message "_parameter_range" to change the number of items in your live.menu and their label.

But be careful, these attributes are hidden for good reasons. I'm not a Max for Live specialist so I can't tell what could break and in which circumstances. I would say that you should be fine as long as your stay in standalone Max, and that you not use pattr on your dynamically set objects. I might be wrong though, up to you to try!

This is the post that put me on tracks, I found it by searching "set hidden attribute" in the forum.

Max Patch
Copy patch and select New From Clipboard in Max.
Masoud Meftahpour's icon

Brilliant!! It works perfect

mizu's icon

Nice ! Idem, not a Live specialist, more with umenu, with clear, append etc.

bzzz