header
Welcome, Guest. Please login or register.
Did you miss your activation email?
   
FillerFiller

+ Chapter - 04 - MEL - Maya Prompt +



Instructor - Pradeep Mamgain

+ Overview +

When you open the Maya, it first runs plenty of scripts that actually builds all the interface windows and elements you see. Maya itself has no interface. You can use Maya without using its interface. In this chapter we will discuss about the Maya Prompt and use it to create a Maya file.

+ Open the Prompt +

Go to Run option of windows and type cmd and press enter. It will open a dos prompt. Type maya -prompt, this will open another dos command prompt with Maya loaded in it, as seen in Figure 4.1.

Maya Prompt
Figure 4.1 - Maya Prompt Window.

You can see that now we have a mel: prompt. Now enter commands as seen in Example 4.1.

Example 4.1 - Creating a file, using Maya Prompt.

polySphere -r 1 -sx 20 -sy 20 -ax 0 1 0 -cuv 2 -ch 1;
file -rename test;
file -s;
quit;

We will get command response in the prompt window itself, as seen in the Figure - 4.2.

Maya Prompy
Figure 4.2 - Maya Prompt Feedback.


+Check the File+

We have successfully created a Maya .mb file without using the Maya interface. Now it is time to check the file. Launch Maya application. Go to File > open and navigate to scene folder of default project which is found under My Documents > Maya > Projects > Default folder. Open the file.

Maya Prompt Result
Figure 4.3 - Maya file created from the Maya Prompt.

Voila !! A sphere is there with exactly the attribute values we had mentioned. See Figure 4.3.

Why Maya is so powerful ? You have just seen a glimpse of that.

+ What Next ? +

Now we know, how to use MEL and how to execute commands; in next chapter we will look at values and variables. Once we go through that we will take one step ahead towards creating more sophisticated scripts.

+ Download Project +

Dear guest, Only registered members can download projects/footages/scripts and Video files.Kindly get registered to download the files. It will also help us in informing you that when new tutorial/article/resource or cg news is available. Once you get registered downlaod link will appear here. - Downloaded times.

+ Save / Promote This Article/Tutorial/Information +

If you enjoyed this article your vote is always highly appreciated.

+ Other Info +

+ Discuss in Forums

# Forum Info #

Chat with cgRokrs - Online

Supports forum boards as channels, a public channel, multiple languages, multiple themes and much more !!

# Board Topics #

Recent Topics Recent CG News

# Board Stats #

Boards : 33, Categories : 7 , Members : 1222, Topics : 135, Posts : 242

# Users Info #

Please welcome our newest friend blackmamba.

Currently (5) users online in forums; (5) guests and (0) users.

Users Online :
Fusion®, Maya® and After Effects® are registered trademarks of eyeon, Autodesk and Adobe.

Content Copyrights © 2008, CG Sutra.

Copyright © 2007 Free Templates by Zymic - Free Web Hosting - Best Viewed in Mozilla Firefox