Thanks Siew, I'll have a look.

Eric T.

On Monday, January 19, 2015 9:17:24 PM, Siew Yi Liang wrote:
Hi Eric:

Here's some code from my scripts to get you going, I had to deal with
this recently, though I dealt with the userSetup config differently (I
expected my animators to be able to do that, but I imagine it wouldn't
be too difficult to write a quick batch file to just append the lines
you need :P ):

http://pastebin.com/5cxxU9rL

Ignore the evalDeferred, you can just use a mel.eval() if you're going
to be running it after MayaWindow is already built. Really the only
important thing is just getting that gMainWindow var from MEL, then
everything else is easy. :)

http://pastebin.com/0nd05atr

In Maya, if I just call the rigTools.start() method, it will build it
into Maya, so you can just assign that to a shelf button if you want
and then your artists can just click that button to have the new menu
added to the menubar, if that's acceptable. Otherwise the only other
easier way I can think of is to have it as a scripted plugin like Owen
said.

Hope that helps!
Yours sincerely,
Siew Yi Liang
On 1/18/2015 4:27 PM, Eric Thivierge 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]
<mailto:[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]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/54BDBAB4.4000905%40gmail.com
<https://groups.google.com/d/msgid/python_inside_maya/54BDBAB4.4000905%40gmail.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/54BE69CB.3020707%40hybride.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to