960
Chapter 14: Properties
Example
This statement sets
romanLingo
to
TRUE
, which causes Lingo to use a single-byte character set:
set the romanLingo to TRUE
See also
inlineImeEnabled
rootLock
Usage
member(
whichCastmember
).model(
whichModel
).keyframePlayer.rootLock
member(
whichCastmember
).model(
whichModel
).bonesPlayer.rootLock
Description
3D
#keyframePlayer
and
#bonesPlayer
modifier property; indicates whether the translational
components of a motion are used (
FALSE
) or ignored (
TRUE
).
The default value of this property is
FALSE
.
Example
This statement forces the model named Alien3 to remain at its starting position while executing
its motions, resulting in a character that will walk in place:
member("newalien").model("Alien3").keyframePlayer.rootLock = 1
rootNode
Usage
member(
whichCastmember
).camera(
whichCamera
).rootNode
sprite(
whichSprite
).camera.rootNode
Description
3D property; allows you to get or set which objects are visible within a sprite. When a camera is
first created, it shows all nodes within the world. The
rootNode
property allows you to modify
this by creating a different default view that limits what’s shown to a particular node and
its children.
For example, light C is a child of model A., if you set the
rootNode
property to
camera("defaultView").rootNode=model(A)
, the sprite will show only model A as
illuminated by light C. The default is
group("world")
, meaning that all nodes are used.
Example
The following statement sets the
rootNode
of the camera of sprite 5 to the model Pluto. Only
Pluto and its children will be visible in sprite 5.
sprite(5).camera.rootNode = member("Scene").model("Pluto")
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...