pymel.core.windows.setMenuMode¶
- setMenuMode(*args, **kwargs)¶
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.
Derived from mel command maya.cmds.setMenuMode
Example:
import pymel.core as pm # Use the "Rendering" Menu Set, and at the same time get the one currently used. prevMenuMode = pm.setMenuMode('renderingMenuSet') # Print the current Menu Set: "renderingMenuSet". print( pm.setMenuMode() )