MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 831

Director scripting reference
Table of Contents

Advertisement

The
modifier can only be added to models created outside of Director in 3D modeling
#lod
programs. The value of the
. The modifier cannot be added to primitives created within Director.
#fromFile
Example
The following statement sets the
50. If the
modifier's
lod
of detail. If the
lod
member("3D World").model("Spaceship").lod.level = 50
See also
lod
(modifier), auto,
lifetime
Usage
member(whichCastmember).modelResource(modelResource).lifetime
Description
3D
model resource property; for all particles in a particle system, this property
#particle
indicates the number of milliseconds from the creation of a particle to the end of its existence.
The default value of this property is 10,000.
Example
In this example, ThermoSystem is a model resource of the type
the
property of ThermoSystem to 90.0 This means each particle of ThermoSystem will
lifetime
exist for 90 milliseconds.
member(8,2).modelResource("ThermoSystem").lifetime = 90.0
See also
emitter
light
Usage
member(whichCastmember).light(whichLight)
member(whichCastmember).light[index]
member(whichCastmember).light(whichLight).whichLightProperty
member(whichCastmember).light[index].whichLightProperty
Description
3D element; an object at a vector position from which light emanates.
Example
This example shows the two ways of referring to a light. The first line uses a string in parentheses
and the second line uses the a number in brackets. The string is the light's name and the number
is the position of the light in the cast member's list of lights.
thisLight = member("3D World").light("spot01")
thisLight = member("3D World").light[2]
property of the model resources used by these models is
type
property of the
level
property is set to
auto
modifier's
property is set to
auto
bias
modifier of the model Spaceship to
lod
, Spaceship will be drawn at a medium level
FALSE
, this code will have no effect.
TRUE
#particle
. This statement sets
light
831

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