Mel Error???

Become a member of the CGSociety

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

THREAD CLOSED
 
Thread Tools Display Modes
  12 December 2011
Mel Error???

Hey All,
I'm trying to load this script in the script editor. And I keep getting this error:


// Error: source "breakdown.mel";
//
// Error: Cannot find file "breakdown.mel" for source statement. //


I have the mel script in the correct folder I believe...the file path is as following :

Users>MY NAME>My Documents>Maya>2012-x64>scripts

All my other scripts go in that folder and load just fine...any reason why this script isn't working correctly?
__________________
Darren S. Simons
www.animationbydarren.com
 
  12 December 2011
- check if that directory is accepted as the default user directory with:
internalVar -usd


- Maya assumes the global proc name to be identical to
the name of the file name without the .mel extension if it
should search for the file.
bsp:
breakdown.mel -> global proc breakdown()
is that the case?
 
  12 December 2011
Originally Posted by sciLoop: - check if that directory is accepted as the default user directory with:
internalVar -usd


- Maya assumes the global proc name to be identical to
the name of the file name without the .mel extension if it
should search for the file.
bsp:
breakdown.mel -> global proc breakdown()
is that the case?



Hey thank you for replying...to be honest...when it comes to mel...i'm a noob...so, I have no idea what you are talking about..lol....its all latin to me. I just know how to place the scripts in the correct file path and load the scripts...

Could you possibly walk me through what to do? Or what I'm doing incorrectly.

You're a huge help...thank you so much for responding....
__________________
Darren S. Simons
www.animationbydarren.com
 
  12 December 2011
you just need to close maya and open it again so it can look at in all the scripts in the right folders.

Then sourcing it wont be a problem.
 
  12 December 2011
Originally Posted by love4animation: Could you possibly walk me through what to do? Or what I'm doing incorrectly.


First, look into the script ( breakdown.mel ). Use notepad or notepad pro ( download ) for that.
Check if there is a procedure with global proc breakdown()". If yes, thats fine. If not, change the name of the entry global proc to the name of your mel script ( breakdown ).

So, tell me what you see..
 
  12 December 2011
Originally Posted by sciLoop: First, look into the script ( breakdown.mel ). Use notepad or notepad pro ( download ) for that.
Check if there is a procedure with global proc breakdown()". If yes, thats fine. If not, change the name of the entry global proc to the name of your mel script ( breakdown ).

So, tell me what you see..



Hey thanks again for responding...this is what I get when I open it in notepad:


// -------------------------------------------------------------------------------------------------------------------------------------
source "breakdown.mel";
global proc breakdownNext()
{

breakdownKeys(1,1);
}
__________________
Darren S. Simons
www.animationbydarren.com
 
  12 December 2011
breakdown.mel should be renamed to breakdownNext.mel
 
  12 December 2011
Originally Posted by sciLoop: breakdown.mel should be renamed to breakdownNext.mel



so just change that in notepad...save it and try to reload?
__________________
Darren S. Simons
www.animationbydarren.com
 
  12 December 2011
still getting the same errors...if you want to PM me with your email..I can send you the scripts?
__________________
Darren S. Simons
www.animationbydarren.com
 
  12 December 2011
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 11:53 AM.


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