papsphilip Posted April 11, 2022 Share Posted April 11, 2022 How can i get the ordered menu labels in VEX? I know how to do this in Python but what about VEX? Quote Link to comment Share on other sites More sharing options...
acey195 Posted April 13, 2022 Share Posted April 13, 2022 By default you will fetch the tokens if you use chs() on an ordered menu parameter. if you use chi() it will give you the index in the list. Do you need to have 2 strings (the token and the label separately) ? If not you can just copy the label value to the token value. For fetching the actual label string.. I'm actually not sure for VEX from the top of my head. Quote Link to comment Share on other sites More sharing options...
papsphilip Posted April 13, 2022 Author Share Posted April 13, 2022 awesome! thank you @acey195 1 Quote Link to comment Share on other sites More sharing options...
freko12 Posted April 24, 2022 Share Posted April 24, 2022 Any way to do this in python ? Quote Link to comment Share on other sites More sharing options...
papsphilip Posted April 27, 2022 Author Share Posted April 27, 2022 menu = node.parm('parm') // get the parm index = menu.evalAsInt() // get the current index label = menu.menuLabels()[index] // get the label of the index try this 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.