# How can I modify the default RMB menu..?

**URL:** https://forum.highend3d.com/t/how-can-i-modify-the-default-rmb-menu/6366
**Category:** Maya
**Tags:** mel
**Created:** [March 19, 2002, 5:29pm UTC](https://forum.highend3d.com/t/how-can-i-modify-the-default-rmb-menu/6366 "2002-03-19T17:29:11Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![naughty](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/n/35a633/32.png) [@naughty](https://forum.highend3d.com/u/naughty)
#### Post date: [March 19, 2002, 5:29pm UTC](https://forum.highend3d.com/t/how-can-i-modify-the-default-rmb-menu/6366/1 "2002-03-19T17:29:11Z")

</div>

you know when you Right-Click over an object you get a context-sensitive marking menu (allowing you to switch to component modes) with a lower menu something like this:

# pCube1...

Select  
Inputs \>  
Outputs \>  
Actions \>  
UV Sets \>  
Paint \>

well, I wanna modify the component mask commands, remove "UV Sets\>" and "Paint\>" items, add a NEW command to this menu and some other crazy stuff but I can't find the MEL script(s) for this marking menu so I'm obviously having trouble putting my own MEL commands into it...

anyone know where to get at it?

:nathaN

---

<div class="post-metadata">

### Author: ![wcy93](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/w/8797f3/32.png) [@wcy93](https://forum.highend3d.com/u/wcy93)
#### Post date: [March 19, 2002, 10:50pm UTC](https://forum.highend3d.com/t/how-can-i-modify-the-default-rmb-menu/6366/2 "2002-03-19T22:50:48Z")

</div>

have a look at the Xumi scripts. they have a lot of context sensitve menus (they might even take over the right click menus- i dunno). they might give you some ideas about where to find the menus...  
cheers.

---

<div class="post-metadata">

### Author: ![joojaa](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/j/5daacb/32.png) [@joojaa](https://forum.highend3d.com/u/joojaa)
#### Post date: [March 20, 2002, 9:48am UTC](https://forum.highend3d.com/t/how-can-i-modify-the-default-rmb-menu/6366/3 "2002-03-20T09:48:13Z")

</div>

Yes you can its only a mel script (Almost the whole, ~99%, maya ui is a mel script and also just a demontration on what you can do). So turn echo on etc and hunt this file down then copy it to your own scripts directory (this will overide the maya defaut for you only, trust me its much smarter thisway bcause otherwise you can easyly break maya). Then do your changes on this copy.

---

<div class="post-metadata">

### Author: ![naughty](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/n/35a633/32.png) [@naughty](https://forum.highend3d.com/u/naughty)
#### Post date: [March 21, 2002, 12:13pm UTC](https://forum.highend3d.com/t/how-can-i-modify-the-default-rmb-menu/6366/4 "2002-03-21T12:13:20Z")

</div>

HURRAH!! I found it, and I've managed to fix all those stupid component selection annoyances and inconsistancies. My RMB menu is now sweeet.

The file controlling the RMB menu is dagMenuProc.MEL if anyone else is interested in a little fiddle. oo-er...

:nathaN

---

<div class="post-metadata">

### Author: ![illusionoflife](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/i/a587f6/32.png) [@illusionoflife](https://forum.highend3d.com/u/illusionoflife)
#### Post date: [November 28, 2003, 8:58pm UTC](https://forum.highend3d.com/t/how-can-i-modify-the-default-rmb-menu/6366/5 "2003-11-28T20:58:12Z")

</div>

I cannot find this MEL script. I just want to alter the base RMB Marking Menu (RM-click in wondow space:

> Complete Tool  
> Select None

Where can I find the script that controls this? Thanks!!

---

<div class="post-metadata">

### Author: ![naughty](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/n/35a633/32.png) [@naughty](https://forum.highend3d.com/u/naughty)
#### Post date: [December 1, 2003, 12:06pm UTC](https://forum.highend3d.com/t/how-can-i-modify-the-default-rmb-menu/6366/6 "2003-12-01T12:06:17Z")

</div>

The dagMenuProc mel script controls RMB menu for objects. The mel script for the RMB menu over "nothing" you are after is called:

buildObjectMenuItemsNow.mel

You'll probably find both these scripts in your Program FilesMayaX.Xscriptsothers folder (or wherever you installed to)

however, I know my RMB mods don't work on Maya 5 so I'm not completely sure both these scripts are the same after Maya 4.5..

good luck.

:nathaN

---

<div class="post-metadata">

### Author: ![jeffd](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/j/71c47a/32.png) [@jeffd](https://forum.highend3d.com/u/jeffd)
#### Post date: [December 1, 2003, 1:58pm UTC](https://forum.highend3d.com/t/how-can-i-modify-the-default-rmb-menu/6366/7 "2003-12-01T13:58:34Z")

</div>

Do a search in the MEL scripts for STORC. I built this off of Naughty's work and it allows you to customize the RC menu using shelves. It works under Maya5 and I have found it very handy. If you need to get more in depth just look at what Naughty and myself have done in these scripts to see how it is done. It is pretty well commented and both of us hang around here if you have questions.

--JeffD
