Maya Icons

Maya Icons

johnny.waldgeischt
Participant Participant
12,408 Views
10 Replies
Message 1 of 11

Maya Icons

johnny.waldgeischt
Participant
Participant

Hey there

 

Where are the Maya icons stored? 

I checked the internet and the only thing i found is a script that extract the 32x32 Maya icons. 

But Maya has three Icon sizes 32, 48, 64 the 64x64 will be used for 4k monitors. 

 

Is there a way to extract the 64p versions? or any other way to finde the Icons? 

0 Likes
12,409 Views
10 Replies
Replies (10)
Message 2 of 11

trs_andre
Collaborator
Collaborator

Hi!

If you click the shortcut on the Desktop, and press the Change Icon button in the Shortcut tab, you should get the path of the actual icon. Mine is something like %SystemRoot%\Installer\"folder with a lot of numbers and letters"\maya.ico

and the icon is 64x64.

Hope it helps!

André Moreira

Game Developer / Technical Artist

LinkedIn

0 Likes
Message 3 of 11

johnny.waldgeischt
Participant
Participant

hey many thanks for your reply 🙂 

 

I found the folder with all the .dll files. but i cant find someone with the name as in the root path named...

 

is that only the maya desktop icon or can i also find the GUI icons like the extrude tool icon as example ? 

0 Likes
Message 4 of 11

trs_andre
Collaborator
Collaborator

For the GUI icons you should be able to find them through the Shelf Editor (Windows Menu, Settings/Preferences).

 

Choose a command and in the bottom left part you should have a place that says "Icon Name". To the right of that there is a button with the Maya mark. By pressing it, a little window with all the factory icons appears, and you have a filter option where you can input any search words.

 

For other icons, like installed plug-ins, etc., they might be in a directory like "Documents/maya/2018/prefs/icons", or maybe in the Program Files folder.

 

Hope it helps!

André Moreira

Game Developer / Technical Artist

LinkedIn

0 Likes
Message 5 of 11

johnny.waldgeischt
Participant
Participant

Cool thanks 🙂 

 

But can i extract these as png? Because i want to change the color of it

0 Likes
Message 6 of 11

trs_andre
Collaborator
Collaborator

Looking at the list of icons, I believe most of them are already in png (some in svg), so you can save them as png just like that, yes.

 

If you mean to replace them, you might need to search for the location of the exact icon.

If you run this MEL command,

 

getenv "XBMLANGPATH" ;

 

Maya will give you the possible paths where icons might be stored.

I think that's where you will want to replace them.

(You can also create a new one, store it in a different place, and set it through the Shelf Editor)

 

Cheers!

André Moreira

Game Developer / Technical Artist

LinkedIn

0 Likes
Message 7 of 11

johnny.waldgeischt
Participant
Participant

Hey 

 

yes there are e few Icons 🙂 but not those for the tools " Bevel, Extrude and so on "

With this Python you can extract them. But only the 32p ones and i need the 64p 😞 

 

from pymel.core import *
for item in resourceManager(nameFilter='*'):
try:
#Make sure the folder exists before attempting.
resourceManager(saveAs=(item, "C:/temp/icons/{0}".format(item)))
except:
#For the cases in which some files do not work for windows, name formatting wise. I'm looking at you 'http:'!
print item

0 Likes
Message 8 of 11

trs_andre
Collaborator
Collaborator

I tried your code but it didn't give me anything 😕

And I tried downloading the ones from the shelf editor but they are 32x32...

 

Maybe Maya only installs the default ones as 32x32 ?

 

I'm out of ideas...😐

André Moreira

Game Developer / Technical Artist

LinkedIn

0 Likes
Message 9 of 11

johnny.waldgeischt
Participant
Participant

wich maya version you are using?

 

befor you run the code you need to create the in the code mentioned folder " C/temp/icons " the code will save the icons out to this folder

0 Likes
Message 10 of 11

trs_andre
Collaborator
Collaborator

Oh sorry, got it, I was thinking it would create the folder automatically.

Indeed only 32x32 icons come out.

I'm using Maya 2018.

Also tried with Maya 2020 but the result was the same...

André Moreira

Game Developer / Technical Artist

LinkedIn

0 Likes
Message 11 of 11

crus
Community Visitor
Community Visitor

Hi

 

I am not tech savvy, could you explain more how to use this code to extract icons , please?

Do I run in script editor, mel or py, is it in win comand line, save is a mell etc.... 

I really don't know what to make it work.

 

Thank you

0 Likes