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 On 18 January 2015 at 22:27, Eric Thivierge <[email protected]> wrote: > Is it possible to add a menu to the top of the Maya UI from a Module? I'm > trying to build a small tool that I can distribute and don't want the users > to have to edit their userSetup.py or similar to have it work. I just want > them to drop a module into their module path and be done with it. > > Haven't found any info on this being available. > > Thanks, > > -------------------------------------------- > Eric Thivierge > http://www.ethivierge.com > > -- > 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/CAAjrnHs8fUyoo4b_Uy%3Driant4E8aiN-u6dhyxOJHTfbc4hLsQQ%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAAjrnHs8fUyoo4b_Uy%3Driant4E8aiN-u6dhyxOJHTfbc4hLsQQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAGTPGOCDMCBsbHWzFcFXP9hpGUnSGRPmSCuD53zSax6vUPZV7g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
