View Full Version : sourcing multiple scripts

02 February 2004, 06:11 PM
hi there all,

i am making a script that will source all the mel in a certain folder:

string $path = "/home/oliverm/maya/5.0/animation/scripts/";
string $scriptsInDir[] = `getFileList -fld $path -fs "*.mel"`;
int $i;
string $sourceScript = "\"" +$scriptsInDir[$i++]+ "\"";
evalEcho("source " + $sourceScript);

but maya gave me an error after executing it:
// Error: source "myScript.mel"; //
// Error: Cannot find file "myScript.mel" for source statement. //

any ideas what is lacking here, or what am i doing wrong.
i am making this script cause my Maya.env does not work, don't know why.

thanx .

02 February 2004, 07:01 PM
I posted a reply at

CGTalk Moderation
01 January 2006, 09:00 AM
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.