964
Chapter 14: Properties
This example displays the parent-relative rotation of the model named Moon, then it adjusts the
model’s orientation using the rotate command, and finally it displays the resulting world-relative
rotation of the model:
put member(“SolarSys”).model(“Moon”).transform.rotation
-- vector( 0.0000, 0.0000, 45.0000)
member(“SolarSys”).model(“Moon”).rotate(15,15,15)
put member(“SolarSys”).model(“Moon”).getWorldTransform().rotation
--vector( 51.3810, 16.5191, 65.8771 )
See also
getWorldTransform()
,
preRotate
,
rotate
,
transform (property)
,
position
(transform)
,
scale (transform)
rotationReset
Usage
member(
whichCastmember
).model(
whichModel
).bonesPlayer.rotationReset
member(
whichCastmember
).model(
whichModel
).keyframePlayer.\
rotationReset
Description
3D
keyframePlayer
and
bonesPlayer
modifier property; indicates the axes around which
rotational changes are maintained from the end of one motion to the beginning of the next, or
from the end of one iteration of a looped motion to the beginning of the next iteration.
Possible values of this property include
#none
,
#x
,
#y
,
#z
,
#xy
,
#yz
,
#xz
, and
#all
. The default
value is
#all
.
Example
This statement sets the
rotationReset
property of the model named Monster to the
z
-axis. The
model maintains rotation around its
z
-axis when the currently playing motion or loop ends.
member("NewAlien").model("Monster").bonesPlayer.rotationReset = #z
See also
positionReset
,
bonesPlayer (modifier)
RTF
Usage
-- Lingo syntax
memberObjRef
.RTF
// JavaScript syntax
memberObjRef
.RTF;
Description
Cast member property; allows access to the text and tags that control the layout of the text within
a text cast member containing text in rich text format.
This property can be tested and set.
Summary of Contents for DIRECTOR MX 2004
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...