Create and set a new maya project named box-project

Assignment Help Computer Engineering
Reference no: EM131308685

Making Boxes by Scripting

Create and set a new Maya project named "Box_Project".

Write a MEL script that does the following:

Starting from a negative X position (e.g., -15), increment X by a small amount (e.g., 3), until X is its positive value (e.g., 15); for each X:

1. make a polyCube with a sequentially-numbered name (e.g., "box1")

2. add the name to an array of names; e.g., if the array is $boxes, then $boxes[i] = $name, where i is 0 for the first box, 1 for the second box, etc., and $name is the next sequentially-numbered box name. So, $boxes[0] is set to "box1", $boxes[1] is set to "box2", etc.

3. move the polyCube to the current X position (MEL command is move -x xValue)

4. scale the polyCube to a random height of between 1 and 5 units:

MEL function rand(m, n) generates a random float between m and n

MEL command scale -y ySize resizes selected object to the ySize on the Y axis (i.e., height)

Use a text editor like Notepad (or, even better, Notepad++) to type your script. Then, save the script as a .mel file in your project's scripts folder.

In Maya's Script Editor, use the Source Script... button () to load and run your script. Once it is working correctly, you should see a row of randomly-sized boxes along the X-axis.

Make a copy of your script file. Then, modify one of the copies so that the boxes are randomly colored:

Using the MEL function rand(1), which generates a random float between 0 and 1, get 3 random values for red ($red), green ($green) and blue ($blue) intensities. Then, randomly color the polyCube using the MEL command

polyColorPerVertex -r $red -g $green -b $blue -a 1 -cdo;

Once you are done, submit your final script (.mel) file, below.

Reference no: EM131308685

Questions Cloud

Lower-quality corporate bonds and treasury bonds : Explain why a flight to quality occurred following the subprime collapse and how this affected the interest rates on lower-quality corporate bonds and Treasury bonds.
How is a hazard different from a disaster : How is a hazard different from a disaster?- What is the most frequent and widespread disaster-causing hazard?
What is a slosh model used to measure : Describe the process by which hurricanes form. - What scale is used to describe the intensity of hurricanes?- What is a SLOSH model used to measure?
Can law enforcement use a persons dna to match : Write a summary describing if the collection of DNA without consent unreasonably intrudes on an arrestees' expectation of privacy. How long can police keep your DNA on file after an arrest or conviction? Can law enforcement use a person's DNA to..
Create and set a new maya project named box-project : Create and set a new Maya project named "Box_Project". add the name to an array of names; e.g., if the array is $boxes, then $boxes[i] = $name, where i is 0 for the first box, 1 for the second box, etc.
What are the three categories of wildland fires : Why was the Fujita-Pearson Tornado Scale updated in 2006, and what changes were made?- What are the three categories of wildland fires?
Analysis of the business strategy accounting analysis : You have been given a portfolio of $ 300 million to manage and invest. In the pension and retirement funds and long-term prospects, to a risk moderate loss of capital and required an annual income of 9%. Analysis of the business strategy Accounting A..
What is the source of most hazardous materials incidents : What is the source of most hazardous materials incidents?- List and describe four categories of weapons of mass destruction.
What is the goal of a media partnership : What three factors do DHS and its state and local partners need to address to improve its communications with the American people?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd