View Full Version : Putting MEL scripts where maya can see them

12 December 2010, 06:42 PM
This feels like anoob thread even tho i've been playign with mel for years, but:

Can somebody please explain exactly where in my Win XP system I need to put a mel script so Maya recognizes its existence?

over the year's I've taken to one of 2 approaches:
1.) just using the script editor file\load script... and just navigating to the mel script I want
2.) copying the same MEL file into EVERY ...\Scripts folder I can find... because MOST of the ...\scripts folders don't seem to work, as in Maya doesn't know to look in that particular folder...

1.) is inconvenient and 2.) seems just messy (and an admission that I don't really know how to tell Maya where my scripts are)

Uhm running Maya 8.0 /Win XP if that matters

12 December 2010, 07:00 PM
Run this line in script editor:


12 December 2010, 09:56 PM
put all your scripts inside:

My Documents\maya\scripts\

if they are version specific put them in:

My Documents\maya\20XX\scripts\

(where 20XX is the version number, in your case probably 8.0). There are many other script folders but you shouldn't ever need to worry about them. You can also add your own folders to the path by editing the MAYA_SCRIPT_PATH environment variable as previously mentioned (adding it to maya.env is the easiest way).

You say Maya is not recognizing these folders? in what way? Sub-folders are NOT allowed (well, they are technically allowed, but Maya won't automatically find any mel scripts inside them...)

have a look at this old post too:


12 December 2010, 02:41 PM
he nathan! you didn't mention internalVar ( there. Its helpful:internalVar -userScriptDir;
// Result: C:/Users/username/Documents/maya/20XX/scripts/ //

CGTalk Moderation
12 December 2010, 02:41 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.