MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 1063

Director scripting reference
Table of Contents

Advertisement

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
alters the color of the particle between
#velocity
based on the velocity of the particle.
alters the color of the particle by linearly interpolating the color between
#age
colorRange.start
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:
lights of this type cast their light evenly on all surfaces. The intensity of ambient
#ambient
lights is not affected by distance from the light source.
#directional
of type
#spot
lights shine in all directions from a specific location in the 3D world. The effect is
#point
similar to a bare light bulb hanging in a room. The intensity of point lights decreases with
distance from the light source.
Lights of this type cast their light from a particular point and within the cone defined by
#spot
the light's forward direction and
distance from the light source using the values defined in the light's
Example
The following statement displays the type property of the light named MainLight:
put member("3D").motion("MainLight").type
-- #spot
See also
spotAngle,
attenuation
property can have the following values:
tweenMode
and
colorRange.end
lights appear to shine in a particular direction, but are not as focused as lights
. The intensity of directional lights decreases with distance from the light source.
spotAngle
colorRange.start
over the lifetime of the particle. This is the default
property. The intensity of spot lights declines with
and
colorRange.end
property.
attenuation
type (light) 1063

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Director mx 2004

Table of Contents