Custom Development Environment problem...

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 04 April 2005   #1
Unhappy Custom Development Environment problem...

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 :-

Quote: 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:-

Quote: // 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.
 
Old 04 April 2005   #2
Hi all!

I answered this one on the melscripting.com forums. 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
__________________
Mark R. Wilkins
author of MEL Scripting for Maya Animators
 
Old 04 April 2005   #3
Thumbs up

oh...thank you soooo much, Mark!! wish i could have u as my mentor/instructor at my University!

Last edited by RhythmOfLine : 04 April 2005 at 01:11 AM.
 
Old 04 April 2005   #4
Thread automatically closed

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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 07:41 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.