User Guide

341
Example
The following statement sets the level property of the lod modifier of the model Spaceship to
50. If the
lod modifiers auto property is set to FALSE, Spaceship will be drawn at a medium level
of detail. If the lod modifiers 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
Syntax
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
Syntax
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.
For a complete list of light properties and commands, see Chapter 2, “3D Lingo by Feature,”
on page 31.
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 members list of lights.
thisLight = member("3D World").light("spot01")
thisLight = member("3D World").light[2]
See also
newLight, deleteLight