Maya Particle Geometry Generator

Overview

The purpose of this python script is to generate a particle field in Maya in an established shape. Maya script creates a dome.

dome.png

Algorithm

  1. open a file for writing,

  2. write the MEL commend particle,

  3. generate a number of x,y,z positions,

  4. if the position met a certain criteria it was used to define a particle,

  5. write a ";" to terminate the "particle" command,

  6. finally the file was closed.

The MEL file generated by the python script was "sourced" in and rendered in Maya.

Script