Message 1 of 4
Python - How to change selection in optionMenu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I am trying to figure out how to change the menuItem selction in an optionMenu but am unable to figure it out.
mymenu = cmds.optionMenu(label ='select type', cc=selecttypecallback)
cmds.menuItem(parent=mymenu, label='selection1')
cmds.menuItem(parent=mymenu, label='selection2')
Now how do I call call mymenu again and check the current selected menuItem to the one i choose?