I know about custom shelves, and custom menu sets, but is there a way to add custom commands to a Maya context menu?
example: I want to put my own custom blendshape scripts in the the create menu on the shape editor.
is this something that can be stored in user prefs or is it something I have to custom add with Maya API
Solved! Go to Solution.
Solved by zewt. Go to Solution.
I just started writing an ideas post about this, actually. (I haven't decided if it's worth posting yet, it doesn't feel like the sort of thing that will get much attention...) It would also be useful to be able to add to the channel box context menu, and the reference editor context menu when right clicking on a reference. It doesn't take much to add these, just a strategically-placed callbacks -executeCallbacks call is usually enough.
At one point I tried monkey patching this by wrapping Maya's scripts, but functions in MEL aren't first-class variables, so I don't think there's any real way to do that.
Some menus do support this, like the "addItemToFileMenu" and "addItemsToRenderLayerEditorPopupMenu" callbacks, but not many.
Can't find what you're looking for? Ask the community or share your knowledge.