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

  Design a chart that showing input, output, and processing

Design a  chart that showing input, output, and processing

  The human-computer interface needs and design group for

the human-computer interface requirements and design group for this federal agency would like to understand the

  Which auditing scopes is most likely to apply

A large organization's enterprise resource planning (ERP) system is being audited. Which of the following auditing scopes is most likely to apply?

  Determine the new optimum solution

For the diet model, suppose that the daily availability of corn is limited to 450 lb. Identify the new solution space, and determine the new optimum solution.

  Write down the code to declare a 2d integer array

Write down the code to initialize myary1 beginning with myary1[0][0] = 1 and adding one for each subsequent array location.

  Describe a short problem related to the information

define a short problem related to the information technology field. the problem can be of your own imagination but

  Write a program which makes a grade book

Reads from an input file using file i/o 20 names(can use first names but make them distinct) and the corresponding grades(grades are between 0 and 100- make several with the same grade).

  For this assignment you will use your proposed solution as

for this assignment you will use your proposed solution as revised following grading and input from your professor

  Construct a moore machine

Construct a Moore Machine that counts modulo 5

  Writenbspa javatm application using netbeanstm integrated

writenbspa javatm application using netbeanstm integrated development environment ide that calculates the total

  Is allocate and free memory belong to the process

System calls to allocate and free memory belong to the Process control operating system service category. The producer-consumer problem refers to the sharing of a buffer of size n among two jobs

  Intrusion detection system or intrusion prevention system

Your company is deciding whether to employ the intrusion detection system (IDS), or an intrusion prevention system (IPS).

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