SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 01-03-2010, 04:41 PM   #1
roontoon
Registered User
 
Join Date: Dec 2009
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default Newbie at Mel

I am doing a tutorial that is older and I am using Maya 2010, not sure if that is the problem but when I enter the code for the tutorial and run it, it is throwing an error. If you could take a look below and see if anything obvious jumps out at you. The error I am getting is # Error: line 0: SyntaxError: ^: invalid syntax

Thanks in advance.

d


// window for our Node Generator

string $Node_Generator = 'window
-title "Node Generator"
-wh 128 256
Node_Generate';
// Define our Row and Column Layout

rowColumnLayout -numberOfColumns 2 - cw 50;

// Column1 Buttons Column2 Button Descriptions

separator; separator;

button -label "arcLen Maker" -c "CurveInfo()"; text -label "CurveInfo";

// shows our window
showWindow $Node_Generator
roontoon is offline   Reply With Quote
Old 01-03-2010, 05:35 PM   #2
roontoon
Registered User
 
Join Date: Dec 2009
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default Doesn't matter what I enter....

I get errors no matter what I enter and execute as a mel command.... I just entered:

// This is a comment.
print(5 + 10); // This is a comment too.

and got the same error.... Do I have to change some preferences.... :headbang: :headbang: :headbang:

d
roontoon is offline   Reply With Quote
Old 01-03-2010, 05:37 PM   #3
roontoon
Registered User
 
Join Date: Dec 2009
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Got it figured out.... Newbie mistake. <he blushes with embarrassment>

d
roontoon is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
MEL headache! happymat27 Members Lounge 5 05-12-2010 08:43 AM
MEL headache!! happymat27 Mel Scripts & Programming 1 03-12-2010 03:41 PM

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.