Jump to content

Getting Tokens and Labels of Menu Parameter in VEX


Christian S

Recommended Posts

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

Link to comment
Share on other sites

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

  • Thanks 1
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...