Tuesday, June 16, 2009

Assignment 03A

For this assignment, you should mainly work with components of objects in Maya (cvs, edges, faces, vertices). You should try and create a function definition for each one of the exercises, making them flexible by passing arguments and using if/else statements in your code.

  1. Curve CVs: function to randomly move all control vertices of a curve. As arguments in your function, you should pass the minimum and maximum values for the random movement
  2. Nurbs Surfaces CVs: function to randomly move all control vertices of a nurbs surface. As arguments in your function, you should pass the minimum and maximum values for the random movement, as well as the axis in which you want to randomly move the CVs (x, y or z)
  3. Faces of a polygon: function for randomly extrude all faces of a polygonal surface. As arguments in your function, you should pass the minimum and maximum values for the random extrusion
  4. Polygon Vertices: function to randomly move all vertices of a polygonal surface. As arguments in your function, you should pass the minimum and maximum values for the random movement, as well as the axis in which you want to randomly move the vertices (x, y or z)
  5. Add an if statement to the above functions to jump every n element (you choose the number). If you want, you can also change the operation being performed (for example, use poke face instead of extrude face, or extrude vertex instead of move vertex). Check the Python Command Reference in the Help menu to look for other operations that could be used with the desired component.

All the above is repetition of everything we saw in class and that you have been producing the past weeks.

Please, post your results (scripts along with screenshots) on the blog by 21.06, around midday.

No comments:

Post a Comment