2010

Table Of Contents
you can write an expression to control all particles in an object the same way,
or you can control each particle differently.
In this lesson you learn how to:
create a particle object
create a creation expression to set the initial color of the particles
create a runtime expression to control the color during playback
use a random function to randomize how the color changes
control the timing of an expression
Creating particle objects
In the following steps, youll create a particle object made of 100 randomly
positioned particles displayed as tiny spheres. Youll also dynamically add an
attribute to the particles. To color particles with an expression, Maya requires
you to dynamically add the appropriate attribute.
To create a particle object
1 Make sure youve done the steps in
Preparing for the lessons on page 626.
2 From the Dynamics menu set, select Particles > Particle Tool > .
3 In the Tool Settings window, click Reset Tool, and set the following
options:
Particle Name: Bubbles
Number of Particles: 100
Maximum Radius: 5
Click in the scene view (roughly in the center) to create the
100-particle object.
4 From the Toolbox, select the Selection Tool so that particles become
selected.
5 With Bubbles selected, display the Attribute Editor.
644 | Chapter 12 Expressions