import pymel.core as pm # Name of the global variable for the Maya window MainMayaWindow = pm.language.melGlobals['gMainWindow'] # Build a menu and parent underthe Maya Window customMenu = pm.menu('Custom Menu', parent=MainMayaWindow) # Build a menu item and parent under the 'customMenu' pm.menuItem(label="menu item 'hihi'", command="print 'hihi'", parent=customMenu)
+1--
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/CAFRtmOA0zaCBF%3DEwbuE-7t%3DN3A%2B8HQ-ed8NRp97HBB2czTVKvA%40mail.gmail.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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAAjrnHs8fUyoo4b_Uy%3Driant4E8aiN-u6dhyxOJHTfbc4hLsQQ%40mail.gmail.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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODZCVB4A9MoJ_1rRguyeefa9dqy_8nf44LQOjBNxjM76g%40mail.gmail.com.
Yours sincerely, Siew Yi Liang
--
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/CAAjrnHs8fUyoo4b_Uy%3Driant4E8aiN-u6dhyxOJHTfbc4hLsQQ%40mail.gmail.com.
def __toolsetXUserInit():
print 'create menu and do awesome startup stuff'
__toolsetXUserInit()
del __toolsetXUserInit()
>> send an email to python_inside_maya+unsub...@googlegroups.com
>> <mailto:python_inside_maya+unsub...@googlegroups.com>.
>> 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 python_inside_maya+unsub...@googlegroups.com
> <mailto:python_inside_maya+unsub...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/a91509b7-aae2-41c3-ae22-21acc3dfc648%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.