Maya, Modules and Shelves Oh My ...

1,094 views
Skip to first unread message

md

unread,
Aug 1, 2014, 10:44:46 AM8/1/14
to python_in...@googlegroups.com
What a lame name for a post .. ahahahaha.

Anyway ...

I have a bunch of python scripts completed. I decided to try an use the Maya module paradigm for sharing these with the guys in the office.

so I have

\my_module
\icons
-bunch of icons 
\plug-ins (empty)
\presets (empty)
\scripts
- bunch of scripts 
\shelves
- my_module_shelf.mel

 
in my docs\maya\2015-x64\modules folder I have :
my_module.mod

the contents of that are as follows ...

+ sm_module any my_network_path\my_module\

MAYA_SHELF_PATH += \my_network_path\my_module\shelves\

When I launch Maya ... the module gets inspected (I can see it in windows-settings&prefs-plug-in-manager) ...

Why does my shelf not load ???

Thanks !!




Marcus Ottosson

unread,
Aug 1, 2014, 12:47:49 PM8/1/14
to python_in...@googlegroups.com
Looks interesting, but out of curiosity, why not set-up a shared path for access to scripts directly? There is typically a development branch and a production branch in which developers store scripts intended for use by others. I think modules are intended for commercialisation of plug-ins and such, where the distributor has little or no control over shared assets.


--
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/73bc15be-9618-4b26-b2c0-a9a4a194d296%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Marcus Ottosson
konstr...@gmail.com

md

unread,
Aug 1, 2014, 12:51:29 PM8/1/14
to python_in...@googlegroups.com
Ok ... but I would really like to have a company shelf load automatically when maya launches. That way I could update the shelf to make scripts available to artists.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.



--
Marcus Ottosson
konstr...@gmail.com

md

unread,
Aug 1, 2014, 1:00:32 PM8/1/14
to python_in...@googlegroups.com
Putting the paths in my maya.env seems to work.

David Shaw

unread,
Aug 2, 2014, 1:08:12 AM8/2/14
to python_in...@googlegroups.com
The module system works well for deploying script packages internally.

The way I did mine was upon submission to perforce a trigger copied the updates to the network drive.

Artists machines had a environment variable to point to the server for the MAYA_MODULE_PATH which picked up everything we needed.

Worked very well with packaging up external scripts and plugins as well.

Cheers,
Dave


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/82af9b14-7f7a-4326-bc08-c214d0d29aa2%40googlegroups.com.

Mike Donovan

unread,
Aug 2, 2014, 11:29:24 AM8/2/14
to python_in...@googlegroups.com
how did u get the shelves to load ??

Sent from my iPhone
You received this message because you are subscribed to a topic in the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python_inside_maya/bmopfAGfg_I/unsubscribe.
To unsubscribe from this group and all its topics, 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/CAGvmHEd_1i%3DJ0pkYhDFk8yrH82b%2BCNqAoyXMjC5_EtM58OE4Mg%40mail.gmail.com.

David Shaw

unread,
Aug 3, 2014, 2:04:05 AM8/3/14
to python_in...@googlegroups.com
in the userSetup.py for that module I loaded from in there

Its been a while now (don't use Maya much due to work) but I was hoping they would add shelf loading to the module system automagically.



Reply all
Reply to author
Forward
0 new messages