PDA

View Full Version : radioMenuItemCollection query the menuItem?


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..;

Robert Bateman
07-21-2009, 01:10 PM
menuItem -q -radioButton selMenuItem;

CGTalk Moderation
07-21-2009, 01:10 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.