Hey Owen,

If that's the standard way to go I'll take that route. I'll have to figure out the Maya plug-in format but shouldn't be too bad. The only other way I've found to add a custom menu without having the user run a command / method is to put some code in the userSetup.py file which won't be good for easy distribution.

I'll have a look thanks.

Eric T.

On 1/19/2015 7:50 AM, owen burgess wrote:
Hey Eric,

How about using a plug-in to manage your custom menu ?

If your module contains a plug-in, you would include the commands for creating your custom menu in the initializePlugin() function (and the commands for removing it in the uninitializePlugin() function)

If your module doesn't contain a plug-in you might want to create a python plug-in with the sole purpose of managing your custom menu as mentioned above. I just tried this in Maya 2015 and it works.

The Plug-in Manager provides a simple UI for (re)loading/removing your custom menu. All the artist has to do is set the plug-in to Autoload and they're done, no scripting required.

Owen


--
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/54BD0EC7.30406%40hybride.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to