Example
The following statement displays the parent-relative position of the model named Tire.
put member("scene").model("Tire").transform.position
-- vector(-15.000, -2.5000, 20.0000)
The following statement displays the world-relative position of the model named Tire.
put member("scene").model("Tire").getWorldTransform().position
-- vector(5.0000, -2.5000, -10.0000)
The following statements first store the world transform of the model named Tire in the variable
tempTransform
tempTransform = member("scene").model("Tire").getWorldTransform()
put tempTransform.position
-- vector(5.0000, -2.5000, -10.0000)
See also
transform
(property), getWorldTransform(),
(transform)
positionReset
Usage
member(whichCastmember).model(whichModel).bonesPlayer.\
positionReset
member(whichCastmember).model(whichModel).keyframePlayer.\
positionReset
Description
3D
keyframePlayer
to its starting position after the end of a motion (
The default value for this property is
Example
This statement prevents the model Monster from returning to its original position when it
finishes the execution of a motion:
member("NewAlien").model("Monster").keyframePlayer.\
positionReset = FALSE
See also
currentLoopState
, then they display the position component of that transform.
and
bonesPlayer
TRUE
rotation
modifier property; indicates whether the model returns
) or not (
TRUE
.
(transform),
scale
).
FALSE
positionReset
931
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers