Go to: Synopsis. Return value. Flags. MEL examples.
menuSet [-addMenu
string] [-allMenuSets]
[-currentMenuSet string]
[-exists string] [-hotBoxVisible boolean] [-insertMenu string uint] [-label string] [-menuArray string[]] [-moveMenu string uint] [-moveMenuSet string uint] [-numberOfMenuSets] [-numberOfMenus] [-permanent boolean] [-removeMenu string] [-removeMenuSet string]
[object]
menuSet is undoable, queryable, and editable.
Create a menu set which is used to logically order menus for display in the main menu bar. Such menu sets can be edited and reordered dynamically.string | Name of resulting menu set. (If there are no menu sets left, an empty string is returned) |
In query mode, return type is based on queried flag.
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
-exists(-ex) |
string |
![]() |
||
|
||||
-label(-l) |
string |
![]() ![]() |
||
|
||||
-addMenu(-am) |
string |
![]() |
||
|
||||
-insertMenu(-im) |
string uint |
![]() |
||
|
||||
-moveMenu(-mm) |
string uint |
![]() |
||
|
||||
-removeMenu(-rm) |
string |
![]() |
||
|
||||
-numberOfMenus(-nm) |
![]() |
|||
|
||||
-menuArray(-ma) |
string[] |
![]() ![]() |
||
|
||||
-currentMenuSet(-cms) |
string |
![]() ![]() |
||
|
||||
-moveMenuSet(-mms) |
string uint |
![]() |
||
|
||||
-removeMenuSet(-rms) |
string |
![]() |
||
|
||||
-numberOfMenuSets(-nms) |
![]() |
|||
|
||||
-allMenuSets(-ams) |
![]() |
|||
|
||||
-hotBoxVisible(-hbv) |
boolean |
![]() ![]() ![]() |
||
|
||||
-permanent(-p) |
boolean |
![]() ![]() ![]() |
||
|
![]() |
![]() |
![]() |
![]() |
// creating a new menu set; menuSet -label "newMenuSet Label" newMenuSetObjName; // using commands on a current menu set // first find the menu set if you don't know the name of it string $animMS = `findMenuSetFromLabel "Animation"`; // menu sets can be queried like normal commands string $animMenus[] = `menuSet -q -menuArray $animMS`; // but editing the set requires either setting the current menu set... // (notice that the menu set comamnds following specify no specific menu set) menuSet -currentMenuSet $animMS; menuSet -removeMenu $animMenus[0]; // : (other commands which pertain to the animation menu set) // .. or temporarily setting the menu set to work on (does not affect current menu set) // (notice that every command following specifies the specific set to apply operations to) string $polyMS = `findMenuSetFromLabel "Polygons"`; string $polyMenus[] = `menuSet -q -menuArray $polyMS`; menuSet -removeMenu $polyMenus[0] -insertMenu $polyMenus[1] 0 $polyMS; // .. where the following commands still affect the animation menu set string $animMenus[] = `menuSet -q -menuArray`; // if you need to find a specific menu... string $deformMenu = `findMenuFromMenuSet $animMS "Deform"`; // moving a menu from one spot to another // (ie. moving the Deform Menu to the front of the list) menuSet -moveMenu $deformMenu 0;