Christian S Posted August 21, 2016 Share Posted August 21, 2016 Hi everyone, I have a menu parameter that is filled using a script. The menu looks like this. "token", "Label" "p", "P" "flow", "Flow" In the VEX code I want to get the selected Token of the parameter. int id = chi("attributes"); string name = chs("attributes"); Both of these return the selected item index but not the token or the label. Is there a way to get the token of a menu parameter using VEX? Thx! Christian Quote Link to comment Share on other sites More sharing options...
f1480187 Posted August 21, 2016 Share Posted August 21, 2016 It is not possible to get parameter labels in VEX. Here the token matrix: ch("integer_menu") // Converted index. chi("integer_menu") // Index. chs("integer_menu") // Converted index. ch("ordered_menu") // Converted index. chi("ordered_menu") // Index. chs("ordered_menu") // Value. ch("string_menu") // Converted value. chi("string_menu") // Converted value. chs("string_menu") // Value. menus.hipnc 1 Quote Link to comment Share on other sites More sharing options...
Christian S Posted August 21, 2016 Author Share Posted August 21, 2016 Thx, unfortunatly, it seems that this doesn't work with "scripted" ordered menu. I switched to a string menu and used the same script and now it works. Really puzzeling but for now it seems fine. Many thx! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.