Community
Maya Programming
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Simple MEL command error...

1 REPLY 1
Reply
Message 1 of 2
jackcole93
405 Views, 1 Reply

Simple MEL command error...

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

1 REPLY 1
Message 2 of 2
zhong_wu
in reply to: jackcole93

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


Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report