You
can adjust nParticleShape node attributes to specify how the particles
look, move, and collide with other Nucleus objects. Adjusting the
emitter attributes also affects the overall characteristics of your
nParticle simulation.
To
make the nParticles look and behave like candy, you will increase
their size, change their color, and make their surfaces sticky.
To increase nParticle size
- In the Outliner,
select nParticle1.
- In the Attribute Editor,
click the nParticleShape tab.
- In the Particle Size section,
set Radius to 1.8.
To change the color of the nParticles
- In the Shading section,
go to Color.
- Click the far left circle marker (at Selected
Position 0) of the ramp.
- Click the color swatch beside Selected Color.
The Color
Chooser appears.
- In the Color Chooser,
click the white. swatch.
- Drag your mouse off the Color Chooser
to close it.
- Click the far right square marker of
the Color ramp to delete it.
For this simulation,
the color of the nParticles will not change so you only need one
ramp marker.
- From the Color Input list,
select Constant.
- Play the simulation.
The nParticles now look
more like candy, but too many nParticles are being emitted, which
is overflowing the bowl.
To solve this problem,
you can reduce the number of nParticles by adjusting the emitter
attributes. Like many Maya attributes, you can set a key to change
the emission rate at a specified time in the simulation.
To key nParticle emission rate
- Go back to the beginning of the playback
range.
- Play the simulation and stop at frame
50.
- In the Outliner,
expand candy_emitter_surface and select Emitter_Candy1.
- In the Attribute Editor,
click the Emitter_Candy tab.
- In the Basic Emitter Attributes section, -click Rate (Particles/Sec) and
select Set Key from the shortcut menu.
A key is created with
the nParticle emission rate set at 50.
- Play the simulation for five more frames
stopping at frame 55.
- Set Rate (Particles/Sec) to
0.
- Go back to the beginning of the playback
range and play the simulation.
nParticles are now emitted
until frame 55, which is just enough to fill the bowl.