automatically load shelf images in other computers

34 views
Skip to first unread message

Rudi Hammad

unread,
Nov 1, 2021, 7:55:28 PM11/1/21
to Python Programming for Autodesk Maya
Hello,

we are a working in a project where every one is working locally. So before writing any code, I was wondering if there is a way to automatically load all the  images of the shelf that I am sending to the other members of the team.

I load the images locally by setting the path:
C:\Users\rudi\Documents\maya\2018\prefs\icons\someImage.png, so obviously this won't work for other users. They will have to manually set the path which is not ideal.

We share everything in google drive too. Is it possible to load directly from there?

Is there an easy way or should I write code to do a custom install reading each computer environment to get where maya is installed?

Thanks

Hannes Delbeke

unread,
Nov 2, 2021, 5:42:03 AM11/2/21
to python_in...@googlegroups.com
i recommend to look into maya projects, maya modules, and environment variables.

video on relative path for textures: https://www.youtube.com/watch?v=3mYetC5sGSk

modules/plugins can load icons relatively from a icons folder setup in the mod file.

you could also ask people to add a env variable. and set your path to  %MYICONFOLDER%/someImage.png
then if everyone sets their env var correctly it will load the icon


Kind Regards,
Hannes Delbeke



--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/accedb59-7511-4c15-86d7-cdc70b2f4395n%40googlegroups.com.

Rudi Hammad

unread,
Nov 2, 2021, 8:03:15 PM11/2/21
to Python Programming for Autodesk Maya
Thanks for the reference, I'll check it out.
Cheers,

R
Reply all
Reply to author
Forward
0 new messages