User Guide
type (light) 1063
tweenMode
Usage
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)
type (light)
Usage
member(whichCastmember).light(whichLight).type
Description
3D light property; the light type of the referenced light. This property’s possible values are
as follows:
• #ambient lights of this type cast their light evenly on all surfaces. The intensity of ambient
lights is not affected by distance from the light source.
• #directional lights appear to shine in a particular direction, but are not as focused as lights
of type #spot. The intensity of directional lights decreases with distance from the light source.
• #point lights shine in all directions from a specific location in the 3D world. The effect is
similar to a bare light bulb hanging in a room. The intensity of point lights decreases with
distance from the light source.
• #spot Lights of this type cast their light from a particular point and within the cone defined by
the light’s forward direction and spotAngle property. The intensity of spot lights declines with
distance from the light source using the values defined in the light’s
attenuation property.
Example
The following statement displays the type property of the light named MainLight:
put member("3D").motion("MainLight").type
-- #spot
See also
spotAngle, attenuation