PDA

View Full Version : MEL: icons disappearing after restart


Lord_Venthor
04-05-2004, 05:31 PM
If got a problem with my first mel script which creates a basic GUI that shows some iconTextButtons.
After I created some buttons and attached an image to it, it's working fine when running the script. But after closing Maya and restarting it again, executing the same script, none of any images are displayed due to the warning:
"File XXX.bmp not found"

the iconTextButton command looks like that

iconTextButton
-style "iconOnly"
-image1 "POLYGONSPHERE.bmp"
-l "Sphere"
-ann "Polygon Sphere"
-doubleClickCommand "CreatePolygonSphereOptions"
-c "CreatePolygonSphere;";



I used the same iconfiles that were located in the \extras\icons directory.


I can only get the script working correct again, after I deleted the userPrefs.mel (and/or windowsPrefs.mel) files under
maya\5.0\prefs.

My Question: How can I get it to work again? I would be happy for any help you guys can provide me.

Thx in advance, Venthor.

paulwconnor
04-06-2004, 04:42 PM
You could try using the absolute path of the file? e.g. rather than using:

"POLYGONSPHERE.bmp"

try:

"C:\Program Files\AliasWavefront\Maya5.0\extras\icons\POLYGONSPHERE.bmp"


That might work.

Lord_Venthor
04-06-2004, 05:32 PM
Thx a lot! It works now. I had those icons lying in the root directory of my script, so it was working when i deleted the windowPrefs.mel file.

Again, thx a lot!

paulwconnor
04-06-2004, 06:44 PM
... although deleting preference scripts is not a great idea! Glad it works!

:cool:

CGTalk Moderation
01-17-2006, 11:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.