Hi all, I am trying to figure out where a MEL code, particularly where it has
gotten its icon image from…
I was trying out a small test in Maya, in which as I change the format of the
image, whether is it is the form of .xpm to .png etc. I am unable to determine
if it is deriving from…
Is there any Mel code etc. that enables me to determine it? Or any other ways?
You will have to add a name to the shelfbutton so you know what to query.
Default location for maya icons are <drive>:/Program Files/Autodesk/Maya<version>/icons/
You can use your own icons by using a absolute path to the file.
You will have to add a name to the shelfbutton so you know what to query.
Default location for maya icons are <drive>:/Program Files/Autodesk/Maya<version>/icons/
You can use your own icons by using a absolute path to the file.[/QUOTE]
Hi Jerakin, thanks for your reply but perhaps I am not stating clearly in my post. Sorry about that.
I am trying to query where does ‘rexSpotLight.xpm’ lives?
Another thing will be caused I am using linux and the school system as well, in which it derives its items from the servers.
I checked on my local directory, since nothing is there, I am seeing that it lives in the server.
However there is a problem. For the image, I am seeing it 2 different servers, meaning 2 different locations… And hence is there a way for me to find out if it is coming from Server A or Server B?
That sounds like a very odd behavior. If it is a relative path it should be in one of the default icon folders:
<drive>:/Users/<user>/Documents/maya/<version>/prefs/icons
<drive>:/Program Files/Autodesk/Maya<version>/icons/
If it is outside of the default locations it needs to be a absolute path, so maya can find it.
I don’t think you are directly able to find where the icon are if they are in a default location.
Closes I can think of that you should be able to do, is check each folder if an icon is there or not. But you would have to check all possible locations (with filetest command) and know of the locations before hand.
Sorry I couldn’t help, maybe someone else have a better idea.
[QUOTE=Theodox;24292]your current copy of maya’s search paths can be gotten with mel:
getenv XBMLANGPATH
You’ll have to check the folders directly[/QUOTE]
Hi Theodox, well your command works but apparently after checking through all the locations it has given, I am still unable to locate most of the icons though…