MACROMEDIA DIRECTOR MX-USING DIRECTOR MX Use Manual page 528

Table of Contents

Advertisement

Property
y axis
z axis
Transform commands
Use these commands to work with transforms:
Command
rotate
(
xAngle,
)
yAngle, zAngle
preRotate
(
xAngle,
)
yAngle, zAngle
rotate
(
point,
)
vector, angle
preRotate
(
point,
)
vector, angle
528
Chapter 20
Access
Description
Get and set
A vector representing the transform's
canonical y axis in transform space. Example:
transform.identity()
transform.rotate(90,0,0)
put transform.yaxis
--vector(0,0,1)
Get and set
A vector representing the transform's
canonical z axis in transform space. Example:
transform.identity()
transform.rotate(0,90,0)
put transform.zaxis
--vector(1,0,0)
Description
Applies a rotation transformation after the current transformation:
model.transform.identity()
model.transform.translate(100,0,0)
model.transform.rotate(0,0,90)
After this series of transformations, performed in this order, the model's
(0,100,0)
local origin will be at
the world.
Applies a rotation transformation before the current transformation:
model.transform.identity()
model.transform.translate(100,0,0)
model.transform.preRotate(0,0,90)
After this series of transformations, performed in this order, the model's
(100,0,0)
local origin will be at
the world.
Similar to
transform.rotate(xAngle, yAngle, zAngle)
except that the arguments are two vectors specifying an axis of rotation
as a point and a vector, plus an angle specifying the clockwise rotation
around that axis:
model.transform.identity()
model.transform.translate(-50,0,0)
model.transform.rotate(vector(100,0,0)
vector(0,1,0))
After this series of transformations, performed in this order, the model's
(250,0,0)
local origin will be at
the world.
transform.preRotate(xAngle, yAngle,
Similar to
zAngle)
, except that the arguments are two vectors specifying an axis
of rotation as a point and a vector, plus an angle specifying the
clockwise rotation around that axis.
model.transform.identity()
model.transform.translate(-50,0,0)
model.transform.preRotate(vector(100,0,0)
vector(0,1,0))
After this series of transformations, performed in this order, the model's
(150,0,0)
local origin will be at
the world.
, assuming the model's parent is
, assuming the model's parent is
, assuming the model's parent is
, assuming the model's parent is
Default
vector
(0,1,0)
vector
(0,0,1)
Returns
Nothing
Nothing
,
Nothing
Nothing

Advertisement

Table of Contents
loading

This manual is also suitable for:

Director mx

Table of Contents