Message 1 of 4
Not applicable
10-25-2017
01:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
Is it possible to add a custom menu item to the Application dropdown menu in 3ds Max 2017?
More specifically I would like to add a new option to one of the sub menus (see image).
so far I've tried the following:
macroScript TestItem category:"File"
(
print "test!"
)
id = genClassID returnValue:true
if menuMan.registerMenuContext id[1] then
(
fileMenu = menuMan.findMenu "&File"
testImportAction = menuMan.createActionItem "TestItem" "File"; --create an ActionItem from the MacroScript
testImportAction.setTitle "Test";
testImportAction.setUseCustomTitle true;
fileMenu.addItem testImportAction -1; --add the ActionItem to the menu
menuMan.updateMenuBar() --update the menu bar
)
However with the above code no new items show up in the application menu.
I've placed the script in the "C:/Users/{MyUserName}/AppData/Local/Autodesk/3dsMax/2017 - 64bit/ENU/scripts/startup/" folder as a .ms script.
Am I adding to the wrong menu?
Solved! Go to Solution.
