Hi Arvid, to edit the objects in the poly creation menu you have to edit the "contextPolyToolsDefaultMM.mel" file (on windows 'c:\Program Files\Autodesk\Maya2016\scripts\others\contextPolyToolsDefaultMM.mel')
You can do this with other default Maya MMs as well dealing with other contexts such as: contextNurbsCurveToolsMM.mel contextPolyToolsDefaultMM.mel contextPolyToolsEdgeMM.mel contextPolyToolsFaceMM.mel contextPolyToolsMM.mel contextPolyToolsObjectMM.mel contextPolyToolsVertexMM.mel For the CTR +RClick context MM when a poly is selected you need to modify 'polyConvertMM.mel' (on windows 'c:\Program Files\Autodesk\Maya2016\scripts\others\polyConvertMM.mel'). Hope It helps. Have fun modding the default Maya MMs! :D *Carlos Rico Adega*------------------------------------- <http://www.vimeo.com/16765581> LinkedIn <http://www.linkedin.com/pub/carlos-rico/6/58/325> [email protected] 2016-02-06 21:54 GMT+01:00 Arvid Schneider <[email protected]>: > While we briefly shifted to MMs..anyone an idea on how to edit the objects > in the poly creation menu. Shift or ctrl right click? Would be great to add > some more and remove some others.. > > > On 6 Feb 2016, at 19:59, Marcus Ottosson <[email protected]> wrote: > > Thanks Carlos! I'll dig into marking menus some more; and that `whatIs` > command looks like it will come in handy! > > On 6 February 2016 at 10:45, Carlos Rico Adega <[email protected]> > wrote: > >> Well, I use Marking Menus a lot if not always, so the >> 'Windows>Setting/Preferences>Marking Menu Editor' is an old friend :) >> >> This MM is one of the first MMs in the Editor. >> >> A simple MEL call: >> >> whatIs switchPanelToType; >> >> will spit out the location of that procedure (on windows for example >> 'C:/Program Files/Autodesk/Maya2016/scripts/startup/HotboxSouthMenu.mel') >> >> If you want to get more involved with MM customization this script from >> CC is the easiest way (I think) to do it without having to code it yourself. >> >> http://www.creativecrash.com/maya/script/mmtokey >> >> Glad to hear it works out for you. Cheers. >> >> 2016-02-06 11:27 GMT+01:00 Marcus Ottosson <[email protected]>: >> >>> That's brilliant, thanks Carlos. >>> >>> How do you find such things? I haven't customised marking menus before, >>> where would suggest I start looking for the default scripts, such as this >>> one? >>> >>> On 5 February 2016 at 11:26, Carlos Rico <[email protected]> >>> wrote: >>> >>>> Without looking anything first thing to mind is to have a look at the >>>> default Marking Menu "ChangePanelType". The thing is it is MEL. >>>> >>>> # python code >>>> import maya.mel as mel >>>> mel.eval("switchPanelToType GraphEditor") >>>> >>>> You can have a look at "switchPanelToType" maybe to see how it is done >>>> in MEL and translate to python. Cheers. >>>> >>>> >>>> >>>> >>>> *Carlos Rico Adega*------------------------------------- >>>> <http://www.vimeo.com/16765581> LinkedIn >>>> <http://www.linkedin.com/pub/carlos-rico/6/58/325> >>>> [email protected] >>>> >>>> 2016-02-05 12:08 GMT+01:00 Marcus Ottosson <[email protected]>: >>>> >>>>> Hi all, >>>>> >>>>> Within each panel, I can go: >>>>> >>>>> - Panels -> Panel -> Graph Editor >>>>> >>>>> ..or.. >>>>> >>>>> - Panels -> Panel -> Script Editor >>>>> >>>>> ..etc. >>>>> >>>>> But I can't find a way to do this programmatically, to the currently >>>>> active panel. I'm looking for something like this. >>>>> >>>>> ```python >>>>> # psuedo code >>>>> panel = cmds.getPanel() >>>>> cmds.setPanel(panel, "GraphEditor") >>>>> ``` >>>>> >>>>> Any ideas? >>>>> >>>>> -- >>>>> *Marcus Ottosson* >>>>> [email protected] >>>>> >>>>> -- >>>>> 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/CAFRtmOC2_zaqpj4WwLeXO7z0RLAUEk%3DZAaV5ECmBmxGo5JBA-g%40mail.gmail.com >>>>> <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOC2_zaqpj4WwLeXO7z0RLAUEk%3DZAaV5ECmBmxGo5JBA-g%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/CAFzJ14VkTTr-49v26magu93b6MMsptyGbfhDWiUsXVxTJwcxFw%40mail.gmail.com >>>> <https://groups.google.com/d/msgid/python_inside_maya/CAFzJ14VkTTr-49v26magu93b6MMsptyGbfhDWiUsXVxTJwcxFw%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>> . >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> >>> >>> -- >>> *Marcus Ottosson* >>> [email protected] >>> >>> -- >>> 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/CAFRtmOAEocV7yaJoo_ES_0kPuGa9PSCGh9qPor3uUwB6xbzCKw%40mail.gmail.com >>> <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAEocV7yaJoo_ES_0kPuGa9PSCGh9qPor3uUwB6xbzCKw%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/CABZMTmQ7dN4_LmS1asX%3D_xAan5hBeODqpZNvTthyr4iVh1iO4w%40mail.gmail.com >> <https://groups.google.com/d/msgid/python_inside_maya/CABZMTmQ7dN4_LmS1asX%3D_xAan5hBeODqpZNvTthyr4iVh1iO4w%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > *Marcus Ottosson* > [email protected] > > -- > 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/CAFRtmOAG7NCuJGJfmOJdafZGGTy%2Bq7b-cXhhWf-z%2B3RkKbVh%2Bg%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAG7NCuJGJfmOJdafZGGTy%2Bq7b-cXhhWf-z%2B3RkKbVh%2Bg%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/D8399EBE-2EBD-4713-B548-AB5A0C3D26B0%40gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/D8399EBE-2EBD-4713-B548-AB5A0C3D26B0%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/CAFzJ14V%3DFhe4cHyGfkmr7U0gkx3qDpz6EKBsWNw2nPmQbXiDEg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
