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"`;
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.