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

Video Hive Advertise Here Advertise Here Advertise Here Advertise Here Advertise Here

Want to put your 125x125 ad banner here, contact us

+ 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.

+ Other Info +

+ Discuss in Forums
+ Save / Promote This Article/Tutorial/Information +

Enjoyed this article/page/article/information? Your vote is always highly appreciated. If you own a website please create a backlink to CGSutra on your website. Get registered in the Forums and interact with other CGSutrians. You can also subscribe for CGSutra Google and CGSutra Yahoo Groups, so that we can inform you about new tutorials and developments. CGSutra Blog is updated daily and provides information about latest offsite CG tutorials, new plugin-software-movie releases, CG resources and inspirational artwork.

Subscribe to CGSutra Group

Powered by us.groups.yahoo.com




Add CGSutra blog and forum feed to your favorite feed reader application. Here is the link to the What is RSS and how to read feeds in feedreader application?
CGSutra.COM on Facebook




Fusion®, Maya®, Blender® and After Effects® are registered trademarks of eyeon, Autodesk , Blender Foundation and Adobe.

Content Copyrights © 2008, CG Sutra.

Copyright © 2007 Free Templates by Zymic - Free Web Hosting

Best Viewed in Mozilla Firefox, Safari, Opera and Google Chrome.