max2018: maxscript menu with icons

max2018: maxscript menu with icons

Kreaction
Advocate Advocate
7,751 Views
20 Replies
Message 1 of 21

max2018: maxscript menu with icons

Kreaction
Advocate
Advocate

Hi,

In max 2014 I have a custom menu (in main toolbar) with internal tools that is defined at startup with maxscript.

Editing MaxActionItemsOverlay.xml file, with enhanced menus all my customs icons are there.

 

In max 2018, I can't get this to work. Via interface or maxscript or manually editing MaxActionItemsOverlay.xml, I can't get those icons appearing with my custom menu.

Default max UI template just after install, how can we ad some custom icons in our customs menus/menuitems ?

We heavily rely on such custom menus full of custom tools, and seeing a list of text isnt very efficient...

 

I do it with maxscript at startup (basically deleting menu and recreating it) due to often updates in these tools. I guess I could also save a menu file just for this menu, if there is a maxscript command to merge a menu into the main toolbar without destroying each one customization. But actually, I can't see how to it, even the python example doesn't have anything regarding icons, even in the sdk doc.

Accepted solutions (1)
7,752 Views
20 Replies
Replies (20)
Message 21 of 21

Anonymous
Not applicable

Hi, previous guy here. I did indeed get this to work after fiddling about and then using Drews info. As he has said in the max folder there is a folder called UI_In.

In that folder there are two folders called:

icons

iconsDark

 

In each of those folders, I created a folder called:

Dark

Light

 

In each of these folders I created a folder called:

my_icons

 

I put my  icons inside both versions of my_icons, with each icon having different sizes:

myTool_16.png

myTool_24.png

myTool_30.png

myTool_36.png

myTool_48.png

 

In my macro file i have the following as part of the macro definition

iconName: "my_icons/myTool"

 

You do not need to specify the size as Max will determine which to use relative to where you place it in the ui, as a menu item, sub menu or toolbar etc.

 

As part of a pipeline I am helping to build, I wrote code to generate a macro, icon(s) etc that gets copied to max`s folder structure and builds a menu on startup. 

 

Unfortunately, I am unable to share it at this time, but it is possible.

 

I will try and put up what I can to help but might not be this week.

 

hope this help. Please reply here or send me a PM if you want to discuss it 

 

regards

0 Likes