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

  Did you describe how they would deploy different software

scenario your boss has come to you and expressed that there are several software packages that he would like you to

  Write down a 2- to 3-page paper which compares and

designing and coding a procedure module or object can be complex and time consuming. once these elements of a computer

  Write the program with at least two functions to solve

Write the program with at least two functions to solve the following problem.

  Determine the best uses of 3g and 4g technology

Compare the pros and cons of 3G and 4G technology to determine the best uses of 3G and 4G technology in today's applications

  According to return-on-investment analysis which candidate

you are designing a web-based system where your regional offices can submit their sales reports online instead of

  Make a menu bar with a file menu

make a menu bar with a File menu that includes a Perform Action command and an Exit command. The Perform Action command computes either the sum or average of the rows or columns in the array and displays the result in a message box. The Exit comma..

  You can easily and quickly deploy applications via a gui

1.you can easily and quickly deploy applications via a gui interface and push via a browser. historically many

  Make two alternative design strategies

Describe two alternative design strategies, and explain how each would meet the requirements. What are the constraints in this situation.

  When dynamically allocating memory for a specific data type

when dynamically allocating memory for a specific data type explain why a pointer variable of the same data type must

  In which organization does not acquire hardware or software

One of the arguments against using a performance-based work statement is that it is likely to limit competition because more firms will not be qualified to compete.

  What is an it risk assessments goal or objective

What is an IT risk assessment's goal or objective? Why is it difficult to conduct a quantitative risk assessment for an IT infrastructure?

  Software vendors often have scaled levels of support based

software vendors often have scaled levels of support depending on the purchased software package. discuss some of the

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