Persistent Syntax Error on Simple Script

Persistent Syntax Error on Simple Script

Anonymous
Not applicable
730 Views
2 Replies
Message 1 of 3

Persistent Syntax Error on Simple Script

Anonymous
Not applicable

I am trying to run a very simple command through MEL: a simple sphere.

 

I typed in "sphere:" and I get the following error message: "Error: Line 1:7: Syntax Error" (See image).

 

I have been troubleshooting this issue for hours and asking for help from multiple people, but no one has any idea why this is happening. It's such a simple command. Does anyone have any idea what might be wrong?

0 Likes
731 Views
2 Replies
Replies (2)
Message 2 of 3

mspeer
Consultant
Consultant

Hi!

 

sphere:

is not a valid MEL command.

 

What do you want to do?

If you want to create a Nurbs sphere the command is:

sphere

Don't confuse : (wrong) with ; (correct)

sphere;

 

Message 3 of 3

lee.dunham
Collaborator
Collaborator

@mspeer has correctly pointed out the issue (use of colon instead of semi-colon).

 

Worth noting - the Syntax Error actually tells you what line AND character it had trouble with (Error: Line 1:7: Syntax Error). "Line 1:7" is telling you the issue is on the 1st line and 7th character, corresponding to the ":" in "sphere:".

This can help you easily spot issues in future (it will happen!).

0 Likes