3D Lingo Dictionary > T-Z > tweenMode

 

tweenMode

Syntax

member(whichCastmember).modelResource(whichModelResource).
tweenMode
modelResourceObjectReference.tweenMode

Description

3D particle property; allows you to get or set whether the color of a particle varies according to it's speed or age. The tweenMode property can have the following values:

#velocity alters the color of the particle between colorRange.start and colorRange.end based on the velocity of the particle.

#age alters the color of the particle by linearly interpolating the color between colorRange.start and colorRange.end over the lifetime of the particle. This is the default setting for this property.

Example

In this example, ThermoSystem is a model resource of the type #particle. This statement sets the ThermoSystem's tweenMode to #velocity, so its slower particles will not reach the color specified by colorRange.end, while its faster particles will.

member(8,2).modelResource("thermoSystem").tweenMode = #velocitytype (light)