User Guide

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.