Simple MEL command error...

Simple MEL command error...

Anonymous
Not applicable
714 Views
1 Reply
Message 1 of 2

Simple MEL command error...

Anonymous
Not applicable

Hello! I was wondering if anyone could help me!

I am trying to script a simple Mel Command and cannot understand why it wont work.

 

Every time I go to execute the command I get a syntax error, the errors can be seen at the top of the attatched image.

 

I am using Maya 2014!

 

Thank you!

 

Jack

 

Screen Shot 2014-02-21 at 13.46.22.png

0 Likes
715 Views
1 Reply
Reply (1)
Message 2 of 2

zhong_wu
Autodesk Support
Autodesk Support

I believe the problem is that the character “’” you are using to wrap the Mel command (window -t "Rename It!"), you should use this one “`” which is at the top-left of keyboard, just under esc key, please try that:

 

And following is what I tried, and the result is as the picture, hope it helps:

 

string $RNM_Win = `window -t "Rename It!"`;
showWindow $RNM_Win;

 

 

 

Mel Command

 


John Wu
Developer Technical Services
Autodesk Developer Network