PDA

View Full Version : Custom maya icon (or image file) path


derik
07-16-2009, 08:31 AM
Hi
How would i go about setting a custom path for icons in maya?

I am building a UI that can save out poses for characters. I need to take a snapshot of the viewport , save the image somewhere (on my file server) and read it back for use on a nodeIconButton.

It all works well except that maya cannot find my image files unless they are in the predefined icons dir. eg. "C:\Documents and Settings\XXX\My Documents\maya\2009\prefs\icons"

If I specify the full path to the image file I also get an error that the file was not found.

I tried setting up the maya.env file with "MAYA_FILE_ICON_PATH = path to my files" , but it doesn't work.

I hope I explained my problem properly.
Any ideas appreciated!
Thanx

derik
07-16-2009, 09:03 AM
I found i cool explanation here:
http://boards.polycount.net/showthread.php?t=60634

Thanx claydough!

mlefevre
07-16-2009, 01:48 PM
Hi,

I made a similar script to save out snapshots of the workspace & create symbolButtons with those images.

Not sure if it'll be of any help, but if you want to check out the code, feel free to do so.

(I just got an email from an animation student requesting the script, so I'll stick it on highend3D after it's been approved)

DEMO (http://mattlefevre.blogspot.com/2009/06/mlsnapshot-pose-library.html)

derik
07-16-2009, 01:56 PM
Thankyou , it actually helped alot.

I was using the glRender command to take the snapshot, and it turned out to be a bit of a mess.
Your playblast method seems way more simple.

Cheers!
:thumbsup:

CGTalk Moderation
07-16-2009, 01:56 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.