Anyone know where I can find the mel script that is run when I right click on a model and choose object mode. I'd like to replace that script with something that has better functionality but I'm not sure how to track down that command.
I think what you're looking for is "maintainActiveChangeSelectMode" it can be found in: C:\Program Files\Autodesk\Maya2011\scripts\others\dagMenuProc.mel "Echo All Commands" + grepWin is how I usually find this type of stuff.
Oh right, that should be very simple then. just replace the contents of the "maintainActiveChangeSelectMode" function with that bit of script. i.e. global proc maintainActiveChangeSelectMode( string $item ) { SelectVertexMask; SelectToggleMode; } That should do what you want. I'm not sure I understand the other stuff you…
hmm I suspect it's not going to be as simple as that. What do you want the script to do exactly? I might be able to have a look for you to see what the nicest approach would be. Edit: Actually since you know that "maintainActiveChangeSelectMode" is going to get called when you do the right "click > object mode" thing, you…
I just want to run this basic script to go to object mode but leave the object selected, maya's ghetto default has bothered me for year. Why the fuck would I want to go to object mode and deselect the object? Like why? SelectVertexMask; SelectToggleMode; TranslateToolWithSnapMarkingMenu; buildTranslateMM; setToolTo $gMove;…