PDA

View Full Version : A small modification I did to the RMB marking menu.


-wT-
09-23-2002, 06:48 PM
As www.highend3d.com seems to be seldom online, why not post this here, as atleast I find my mod to be quite helpfull :)

So, I did upload the "first version" of the mod to highend, and it just "fixed" (""'s because it wasn't a bug actually) a small feature in the RMB marking menu I didn't like. and now after fiddling around with Wings3D for awhile, I really deicded to crack the secret of how the RMB marking menu worked... and I did! Hoorray! :bounce:

Here's the text from the script itself, there's everything, install instructions and explanation of what I've actually altered. Oh and I've tried to comment the modifications I've made, so you could understand what was changed and why.


//------------------------------------------------
//-- Modified RMB Marking menu by Ville Tammi --
//------------------------------------------------

// The purpose of this modification, is to allow the RMB (Right MouseButton) marking menu to change to component -selection mode
// automatically. The only drawback of this modification, is that you no longer can select both an object and a component at the same time,
// because that was just why it wasn't changing the mode in the first place.

// The procedures which were modified:
// -doMenuNURBComponentSelection
// -doMenuLatticeComponentSelection
// -doMenuParticleComponentSelection
// -doMenuSpringComponentSelection
// -doMenuComponentSelection

// The actual modifications are described in those particular procedures.

// To install, simply copy this over the old file located in x:/AW/Maya4.0/scripts/others (Default path)

//------------------------------------------------
// UPDATE 23.9.2002:

// Ok I updated the script quite alot. It now adds some new buttons to the RMB marking menu, and adds a setting to easily turn all my modifications off, if you don't like 'em, so no need to have a backup of the old unmodified script anymore.

// So, now there are two scripts which I've modified, this (dagMenuProc.mel) and buildObjectMenuItemsNow.mel. Install as usual: Copy both scripts over the old ones in X:\AW\Maya4.0\scripts\others (Or where ever you installed may into).
// To disable the modifications, just type in this line:
// optionVar -iv wT_useMarkingMenuExtension 0;
// And execute it. And if you want to enable 'em again, just replace that 0 with 1.

// So, the new features, well there are two:
// 1.Added total of three new buttons to the different variations of the RMB marking menu.
// "Border" button (Which btw isn't shown if there isn't anything to use it on... go me ;-]), which selects the border of the selected components. Appears only in the polygon-RMB marking menu.
// "Clear Selection" to both, the marking menu that appears when there's nothing under the cursor, and when you click on a polygon mesh. Quite self explanatory.
// 2.Now it converts the selected components automatically to the type you choose from the marking menu.
// Like, for an example you have two verticles selected, then you change the selection type to face and the selection get's converted to the faces that shared the verticles.
// It just simulates how Wings/Mirai/Nendo work in the same situation.

// TIP: To further simulate Wings/Mirai/Nendo, you should assign hotkeys to "Grow-" and "Shrink Selection". I currently have them binded to + and - keys (And increase/decrease manipulator size binded to ? and _, AKA shift+"+" and shift+"_")
// The commands for these are:
// (Grow:) polySelectConstraint -pp 1;
// (Shrink:) polySelectConstraint -pp 2;

// TIP2: As the workflow for polygon modeling is somewhat different now with the auto-convert, you should maybe assign a separate hotkey for clearing the selection, if the new buttons I've added aren't enough.
// The command for clearing the selection is:
// select -cl;

// Ok, that should be all. if you have any suggestion or anything, you can email me: ville_tammi@hotmail.com.
//------------------------------------------------


I've attached the scripts as a zip, just rename the file to zip after download.

stallion151
08-20-2004, 05:19 AM
thats all sounds pretty cool, but most of that is already within reach....

covert menu is assigned to CTRL+RMB.
grow selection is SHIFT+>
shrink selection is SHIFT+<

i admit i haven't tried it, but i suppose anything to help will not be rejected.
good work though.

-wT-
08-20-2004, 08:18 AM
Wow, old thread you dug up there :)

The small mod I made was back in the 4.0 days, and I haven't been with Maya since 5.0 came out so a lot of might changed and made my mod obsolete. And besides, it was mainly for my own amusement, a small workflow improvement for me.

stallion151
08-20-2004, 10:01 AM
oh crap, sorry man didn't even notice. saw it in my hotmail recent list....very odd.

sorry...don't i seem stoopid.

-wT-
08-20-2004, 06:23 PM
Heheh, no problem at all... first reply to this thread atleast :)

onkelandy
08-20-2004, 09:53 PM
So here's the second answer ,-)

It's kinda weird but the "Border"-stuff doesn't work always.. I've changed the command to:
polySelectConstraint -m 2; polySelectConstraint -w 1; polySelectConstraint -m 0;
This one works all the time.


By the way. There is also a nice RMB-mod from http://www.naughtynathan.supanet.com/mel.htm

CGTalk Moderation
01-13-2006, 05:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.