dagObjectHit leveraging undocumented command dagObjectHit we can build our own viewport object/component under cursor aware marking menu. ( I use ctl-mmb to not step on any default Maya MarkingMenu or functionality ) // EDIT: this is wrong old code! Because ctrl-mmb is used for interactively dragging normals with the move…
I believe after using dagMenuProc to return the context of the menu ( under cursor ): popupMenu -e -deleteAllItems is all that is used to keep a custom MM unique. In which case u could omit as much and you would get a normal rmb menu. ( or append yer own menu items to the rmb menu items. ) if u create yer own viewport…