You can load a menu file in MAXScript as follows:
The full path should not be specified. It will look in the appropriate directories for menu files. The default is the "ui" directory.
You can set the main menu in max as follows:
To restore MAX's default main menu:
The function returns true of it succeeds and false if it can't find the named menu.
You can set the quad right-click menu that MAX uses in the viewports using the following MAXScript:
Sets the default (no keys pressed) quad menu to "Modeling 2". The menu name must be a quad menu that is listed in the "Quads" customization dialog, and the name must match exactly, including capitalization.
For the first parameter, you can use one of the following 8 values:
#nonePressed #shiftPressed #altPressed #controlPressed #shiftAndAltPressed #shiftAndControlPressed #controlAndAltPressed #shiftAndAltAndControlPressed
Here are two macroScripts that set and reset two of the right-click menus:
You can display a quad menu like this:
The menu name must be a quad menu that is listed in the "Quads" customization dialog, and the name must match exactly, including capitalization.
You can load a CUI file from MAXScript as follows:
It will search the appropriate UI directory for the .cui file.