In the following steps, you’ll create a particle object made of 100 randomly positioned particles displayed as tiny spheres. You’ll also dynamically add an attribute to the particles. To color particles with an expression, Maya requires you to dynamically add the appropriate attribute.
This adds an rgbPP attribute to the particle shape node for Bubbles. Because you’re adding this attribute as a per particle attribute, you can give each particle a different color.