RavenEye
07-21-2009, 01:01 AM
This could be something easy that I'm not seeing in the maya help docs but here it goes. I'm using the radioMenuItemCollection in the menu. I would like to query the menuItem that I have selected. Like how you would query which radioButton that you have selected, but I don't see a flag that could give me that information. I'm trying to use the selected item to intiate a part in a switch statement. Below is a sample of the script that I'm working on.
window -menuBar true -w 610 -h 370 -t "Custom Command" hiCmdWin;
menu -label "Generic Commands" cmdBar;
radioMenuItemCollection radioMenuCollection;menu -q -ia cmdBar;
menuItem -label "Select" -radioButton on selMenuItem;
menuItem -label "Move" -radioButton off moveMenuItem;
menuItem -label "Rotate" -radioButton off rotMenuItem;
menuItem -label "Scale" -radioButton off scaleMenuItem;
menuItem -label "Toggle" -radioButton off toggleMenuItem;
menuItem -label "Key" -radioButton off keyMenuItem;
menu -label "Custom Variables" variBar;
menuItem -label "New" -c "hiNewCustom;" ;
menuItem -label "Load" -c "hiLoadCustom;" ;
menuItem -label "Save" -c "hiSaveCustom;" ;
setParent..;
window -menuBar true -w 610 -h 370 -t "Custom Command" hiCmdWin;
menu -label "Generic Commands" cmdBar;
radioMenuItemCollection radioMenuCollection;menu -q -ia cmdBar;
menuItem -label "Select" -radioButton on selMenuItem;
menuItem -label "Move" -radioButton off moveMenuItem;
menuItem -label "Rotate" -radioButton off rotMenuItem;
menuItem -label "Scale" -radioButton off scaleMenuItem;
menuItem -label "Toggle" -radioButton off toggleMenuItem;
menuItem -label "Key" -radioButton off keyMenuItem;
menu -label "Custom Variables" variBar;
menuItem -label "New" -c "hiNewCustom;" ;
menuItem -label "Load" -c "hiLoadCustom;" ;
menuItem -label "Save" -c "hiSaveCustom;" ;
setParent..;
