PDA

View Full Version : Custom Development Environment problem...


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.

mark_wilkins
04-26-2005, 01:02 AM
Hi all!

I answered this one on the melscripting.com forums (http://forums.melscripting.com/). What he needs to do is use the command

rehash

to allow Maya to see the new script. Before Maya 6.0, this required quitting and restarting.

-- Mark

RhythmOfLine
04-26-2005, 01:08 AM
oh...thank you soooo much, Mark!! wish i could have u as my mentor/instructor at my University! :thumbsup:

CGTalk Moderation
04-26-2005, 01:08 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.