RhythmOfLine
04-26-2005, 12:56 AM
hey, i tried to create my own basic custom development environment(courtesy- Complete Maya Programming book) by issuin' these commands...
string $scriptsPath = `internalVar -userScriptDir`;
chdir $scriptsPath;
system("start C:/WINNT/notepad learning.mel");
basically, what its supposed to do is automate the process of openin' a MEL script so it can be edited.i saved the commands to the shelf and if u click on it it opens up the notepad with the filename learning.mel
then i decided to just type come really basic commands to the learning.mel to test it :-
sphere;
move 1 0 0;
i saved it. then when i tried executin' it by typin - source learning; in the script editor, it gives me the followin' errors:-
// Error: source learning; //
// Error: Cannot find file "learning" for source statement. //
technically, Maya should automatically look for a file with the complete name: learning.mel without u havin' to give the extension .mel, and a sphere should be created and moved one unit along the x-axis.
but its doesn't and it kills me as to why its doin' that, any help would be much appreciated! thanks in advance!!
btw, i could source the file by usin' the source script menu option but i don't wanna do that.
string $scriptsPath = `internalVar -userScriptDir`;
chdir $scriptsPath;
system("start C:/WINNT/notepad learning.mel");
basically, what its supposed to do is automate the process of openin' a MEL script so it can be edited.i saved the commands to the shelf and if u click on it it opens up the notepad with the filename learning.mel
then i decided to just type come really basic commands to the learning.mel to test it :-
sphere;
move 1 0 0;
i saved it. then when i tried executin' it by typin - source learning; in the script editor, it gives me the followin' errors:-
// Error: source learning; //
// Error: Cannot find file "learning" for source statement. //
technically, Maya should automatically look for a file with the complete name: learning.mel without u havin' to give the extension .mel, and a sphere should be created and moved one unit along the x-axis.
but its doesn't and it kills me as to why its doin' that, any help would be much appreciated! thanks in advance!!
btw, i could source the file by usin' the source script menu option but i don't wanna do that.
