Go to: Synopsis. Return value. Keywords. MEL examples.

Synopsis

setMenuMode [string]

setMenuMode is NOT undoable, NOT queryable, and NOT editable.

Optionally sets a new Menu Mode for the menu bar in the main Maya window. Returns the current Menu Mode, and if a new one is specified, then the previous Menu Mode is returned. Note that due to recent changes to the menu set architecture (8.0+), this function now takes a menu set as a parameter instead of a label.

Return value

stringThe current Menu Mode for the menu bar in the main Maya window.

Keywords

menu, menus, menubar

MEL examples

// Use the "Rendering" Menu Set, and at the same time get the one currently used.
string $prevMenuMode = `setMenuMode renderingMenuSet`;
// Print the current Menu Set: "renderingMenuSet".
print `setMenuMode`;