3D Lingo Dictionary > L-N > mode (emitter) |  |

mode (emitter)

Syntax

    member(whichCastmember).modelResource(whichModelResource).emitter.mode

Description

3D property; when used with a model resource whose type is `#particle`, allows you to both get and set the `mode` property of the resource's particle emitter.

This property can have the value `#burst` or `#stream` (default). A `mode` value of `#burst` causes all particles to be emitted at the same time, while a value of `#stream` causes a group of particles to be emitted at each frame. The number of particles emitted in each frame is determined using the following equation:

    particlesPerFrame = resourceObject.emitter.numParticles / (resourceObject.lifetime x millisecondsPerRenderedFrame)

Example

In this example, ThermoSystem is a model resource of the type #particle. This statement sets the emitter.mode property of ThermoSystem to #burst, which causes the particles of ThermoSystem to appear in bursts. To create a single burst of particles, set `emitter.mode = #burst` and `emitter.loop = 0`.

    member("Fires").modelResource("ThermoSystem").emitter.mode = #burst

See also

`emitter`