# Point Maya At A Custom Icons Folder

**URL:** https://forum.highend3d.com/t/point-maya-at-a-custom-icons-folder/28258
**Category:** Maya
**Tags:** general-usage
**Created:** [October 8, 2008, 11:21pm UTC](https://forum.highend3d.com/t/point-maya-at-a-custom-icons-folder/28258 "2008-10-08T23:21:03Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![loganb](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/l/bbce88/32.png) [@loganb](https://forum.highend3d.com/u/loganb)
#### Post date: [October 8, 2008, 11:21pm UTC](https://forum.highend3d.com/t/point-maya-at-a-custom-icons-folder/28258/1 "2008-10-08T23:21:03Z")

</div>

I have a folder of custom icons i want to use.

can I add this folder to maya’s environment paths?

---

<div class="post-metadata">

### Author: ![pixl](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/p/7ab992/32.png) [@pixl](https://forum.highend3d.com/u/pixl)
#### Post date: [October 9, 2008, 12:51am UTC](https://forum.highend3d.com/t/point-maya-at-a-custom-icons-folder/28258/2 "2008-10-09T00:51:06Z")

</div>

To find the icon director(ies), you can use (MEL):  
getenv XBMLANGPATH;

Generally speaking, your icons will be in:  
C:\Documents and Settings\Administrator\My Documents\maya\2008-x64\prefs\icons

Additional icon paths can be specified, separated by semicolons, in Maya.env  
C:\Documents and Settings\Administrator\My Documents\maya\2008-x64\Maya.env:  
XBMLANGPATH = C:\Documents and Settings\Administrator\My Documents\maya\2008-x64\prefs\icons\zoo;…

Note that if, in a shelf file, relative (probably also absolute) directories are specified for icon locations, those locations do not need to added to the XBMLANGPATH.  
ie, in shelf\_Tiny.mel, the images are referenced as follows:  
-image “tiny/key\_body.xpm”  
So if you add a “tiny” folder in your icons folder, you don’t need to add it to your XBMLANGPATH  
ie: C:\Documents and Settings\Administrator\My Documents\maya\2008-x64\prefs\icons\tiny contains the images for shelf\_Tiny.

Hope that helps.

---

<div class="post-metadata">

### Author: ![loganb](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/l/bbce88/32.png) [@loganb](https://forum.highend3d.com/u/loganb)
#### Post date: [October 9, 2008, 4:19pm UTC](https://forum.highend3d.com/t/point-maya-at-a-custom-icons-folder/28258/3 "2008-10-09T16:19:56Z")

</div>

getenv XBMLANGPATH;  
lists the folder i put the icons in, I’m just not seeing them.

I notice that when I try to edit the shelf buttons to load the missing icons,  
i get a ‘not a valid icon’ error, so that’s probably the actual problem.

the icons are all BMPs saved from photoshop  
I’ve tried saving as 16,24 and 32 bits…still not valid.  
what kind of BMP will Maya see as a valid icon?

is tehre an .xpm plugin for photoshop?

---

<div class="post-metadata">

### Author: ![loganb](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/l/bbce88/32.png) [@loganb](https://forum.highend3d.com/u/loganb)
#### Post date: [October 9, 2008, 5:39pm UTC](https://forum.highend3d.com/t/point-maya-at-a-custom-icons-folder/28258/4 "2008-10-09T17:39:08Z")

</div>

to answer my own questions…

No, there is no photoshop plugin for xpm files …at least not one that is easily found.  
After banging my head against google an adobe’s site for an hour,

I tried converting my bmp’s to xpm’s form maya, using this:

[http://www.highend3d.com/maya/downloads/me…/misc/2490.html](http://www.highend3d.com/maya/downloads/mel_scripts/utility_external/misc/2490.html)

but it seems to not work either.

I tried to use imgcvt to do it , with teh result " imgcvt: unknown output image type - xpm."

in the help files, xpm is not listed as one of the supported formats

In my googling, it seems that this problem has happened to other as well:  
They make a custom icon as a bmp, and use it successfully  
Then they move workstations or install new maya versions, and the custom icons disappear  
trying to manually load them to a shelf =" not a valid icon"

Seems odd that what once worked now does not. any idea why Maya ‘forgets’ that the bmps are actually valid?  
seems odd that people have suggested (and scripted) converting to xpm with imgcvt, when it doesn’t actually work.

My new solution : screw it! I’ll just use text labels.

---

<div class="post-metadata">

### Author: ![pixl](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/p/7ab992/32.png) [@pixl](https://forum.highend3d.com/u/pixl)
#### Post date: [October 9, 2008, 5:48pm UTC](https://forum.highend3d.com/t/point-maya-at-a-custom-icons-folder/28258/5 "2008-10-09T17:48:25Z")

</div>

I haven’t run into that yet. But good to know there is an easy way to convert to xpm, even though it seems like a waste of time.  
Maybe the next version will support png for icons.

---

<div class="post-metadata">

### Author: ![joojaa](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/j/5daacb/32.png) [@joojaa](https://forum.highend3d.com/u/joojaa)
#### Post date: [October 9, 2008, 6:09pm UTC](https://forum.highend3d.com/t/point-maya-at-a-custom-icons-folder/28258/6 "2008-10-09T18:09:26Z")

</div>

Interesting this seems to work for me

imgcvt -f iff -t xpm furball.iff furball.xpm

I think youll find gimp does xpm’s too.
