
ADOBE DIRECTOR 11.0
User Guide
384
Transforms
A transform is a data object describing a model’s position, orientation, and scale in the 3D world. Transform
methods can be used to move a given vector, light, camera, or model from its current location to a new one.
Transform creation method
Use the
transform()
method to create a new
transform
data object.
Transform properties
Use the following properties to work with transforms:
transform*
vector
Returns a new vector that results from applying the positional and
transformation changes defined by
transform
to
vector
. Note
that vector*transform is an invalid operation.
A new vector object
scalar-vector1
Returns a new vector equaling
scalar-vector1
.
A new vector object
vector1-scalar
Returns a new vector
equaling
vector1-scalar
.
A new vector object
vector1
Returns a new vector equaling
vector1
.
A new vector object
v scalar
Returns a new vector equaling
v scalar
.
A new vector object
Method
Description
Returns
transform()
Creates a new transform initialized as the identity transform. The
identity transform has no rotation and a vector position of
(0,0,0)
A new transform object
Property
Access
Description
Default
position
get
and
set
Script vector object describing the position of a
transform with the value
vector(
xOffset,
yOffset, zOffset
)
. A model.transform
position represents the model’s position in rela-
tion to its parent.
vector
(0,0,0)
scale
get
and
set
Script vector object describing the x, y, and z
scale of the transform with the value
vector(
xScale, yScale, zScale
)
.
Scaling is always model-relative.
vector
(1,1,1)
Operator
Description
Returns
Содержание 65036570 - Director - PC
Страница 1: ...i ADOBE DIRECTOR 11 USER GUIDE...