Can't find TranslateToolWithMarkingMenu

Dear All,

I just switched over to Maya 4.5. I now have the problem that using w/e/r for the translate/rotate/scale tools nolonger works. Instead Maya says:

// Error: line 1: Cannot find procedure "TranslateToolWithSnapMarkingMenu". //

When I do a whatIs on that function, it returns:

// Result: Presumed Mel procedure; no definition seen yet. //

But on someone's computer where it does work, the whatIs command says that it is a run-time command.

The q/t/y keys work as per normal. I just can't work out what's wrong with the others. All help appreciated.

Try deletng your prefs (or copy them in case that isnt the porblem!)

By looking in the tools section of the Hotkey Editor you can see most of the run time commands. The run time command you are having problems with just calls another mel procedure called:

buildTranslateMM;
// Result: Script found in: C:/Program Files/AliasWavefront/Maya4.5/scripts/others/buildTranslateMM.mel

I hope this helps,
Randy Stebbing

Dear All,

thanks for your advice, deleting the prefs helped figure out the problem.

It arose because I've changed some of the commands in the Maya interface... by editing e.g. the fileMenu.mel and defaultRunTimeCommands.mel. I'd altered the 4.0 mel interface files and stored them separately. So when using 4.5, it used my replacement files which were variants on the 4.0 mel files. To correct it, I just applied my changes to the 4.5 mel files. It now works fine.

Yes this is why you copy the files to your scripts directory (it superseedes the maya default directories), and make the change there not in the mel scripts supplied with maya.

Thisway you wont screw things up... that easily... but yeah whan you upgrade then theese old scripts would supercede the maya ones and you would need to redo them in a sense!

Dear Joojaa,

they're already separated out like that. I found it also helpful to add REPLACED....REPLACED_END delimiters around the modified code, so I can easily find it when doing these redos. I was surprised though how much changed in some of the scripts, in others it was exactly the same.

Is there some AW policy on when the scripts change? E.g. every major software iteration 4->4.5->5.0, or faster? I'd guess they'd need to do more frequent updates for bug fixes.

well yes i get thet because otherwise you wouldnt have this problem... Aw does a geat deal of tweaking around in the mels so be carefull!

I only wish they'd provide a better way to change the Maya functionality. For example a script job that could intercept closing and opening a file, so that the same procedure could know what's being opened and what's being closed at the same time. Also it'd be good if it could stop opening a file, e.g. if you're enforcing some company policy on editing files (e.g. exclusive locks).

If you don't mind editing the files, I do like the power of the system.