light
831
The
#lod
modifier can only be added to models created outside of Director in 3D modeling
programs. The value of the
type
property of the model resources used by these models is
#fromFile
. The modifier cannot be added to primitives created within Director.
Example
The following statement sets the
level
property of the
lod
modifier of the model Spaceship to
50. If the
lod
modifier’s
auto
property is set to
FALSE
, Spaceship will be drawn at a medium level
of detail. If the
lod
modifier’s
auto
property is set to
TRUE
, this code will have no effect.
member("3D World").model("Spaceship").lod.level = 50
See also
lod (modifier)
,
auto
,
bias
lifetime
Usage
member(
whichCastmember
).modelResource(
modelResource
).lifetime
Description
3D
#particle
model resource property; for all particles in a particle system, this property
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
#particle
. This statement sets
the
lifetime
property of ThermoSystem to 90.0 This means each particle of ThermoSystem will
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]
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...