View Full Version : Trouble running mel scripts


PixelDroid
06 June 2007, 08:16 PM
Hi all.
I'm having a problem running mel scripts.

My script dir is:
C:\Documents and Settings\Mitch\My Documents\maya\8.5\scripts\jsOrientJointUI.mel
which I've verified with:

internalVar -usd;
// Result: C:/Documents and Settings/Mitch/My Documents/maya/8.5/scripts/ //

I'm able to run some scripts from that dir, but others fail. Even when I source a script (from command line and direct selection from File/Source), when I run the script, it fails:

source ftAnimKit.mel;
ftAnimKit.mel;
// Error: Cannot find procedure "ftAnimKit.mel". //

I had this problem in the past and was able to run this script, but no luck this time.
Anyone know what I'm doing wrong?

Thanks much.

DruG
06 June 2007, 08:33 PM
You have to call procedure, not file.

Usually the procedure is named like the file, so in your case that would be:

ftAnimKit;

If not, you have to open your MEL file and see that name. Often authors put them in first lines as comments.
I hope this helps.

Remi
06 June 2007, 08:40 PM
Some may not work in 8.5 either.

PixelDroid
06 June 2007, 11:51 PM
DruG:
That was it.

I was typing:

ftAnimKit.mel
rather than
ftAnimKit

The simplest errors can cause such aggravation...

CGTalk Moderation
06 June 2007, 11:51 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.


1