Lab 1
In this lab you will learn the following:
- Maya programming interfaces (MEL and C++)
- Maya architecture (Maya pipeline, Dependency Graph, DG and DAG nodes, Push-Pull approach)
- Executing basic commands with MEL
Working methods:
Read chapters 1 and 2 (pages 1-52), study chapter 3 till paragraph 3.2.2 "Variables" on page 67.
Assignment:
Write MEL script that adds the following object types to the scene:
- sphere
- polyCube
- polyCone
You can add more objects of different types but this is the minimum required. Your composition should include at least 5 objects from 3 different types organized in a "nice way" (see example bellow).
Guidelines:
Edit the attributes of those objects programmatically to create your own composition. Details about modifying the –width and other attributes of polygons: polyCube and polyCone you can find in the MEL Command Reference.
Use move command to move the objects. The following moves an object with the name "cube1" 5 units up along the Y axis:
move -absolute 0 5 0 cube1;
To see the wireframe mode in Maya press 4, to see shaded objects press 6. To see the "wireframe on shaded" mode (like in the example bellow) press 6 and then select Shading -> Wireframe on Shaded. To learn how to navigate in 3D space in Maya, refer to Maya's documentation.
Solution example:
The composition bellow represents a possible solution. You are expected to create your own original composition.