Transforms - MACROMEDIA DIRECTOR MX 2004-USING DIRECTOR Use Manual

Hide thumbs Also See for DIRECTOR MX 2004-USING DIRECTOR:
Table of Contents

Advertisement

Operator
vector2/scalar
transform*
vector
scalar-vector1
vector1-scalar
scalar + vector1
vector1 + scalar

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 position and/or orientation.
Transform creation method
Use the
transform()
Method
transform()
Transform properties
Use these properties to work with transforms:
Property
position
scale
Description
Returns a new vector equaling
.
vector2/scalar
Returns a new vector resulting from applying the
positional and transformation changes defined by
to
. Note that vector*transform is an
transform
vector
invalid operation.
Returns a new vector equaling
.
scalar-vector1
Returns a new vector equaling
.
vector1-scalar
Returns a new vector equaling
.
scalar + vector1
Returns a new vector equaling
.
vector1 + scalar
method to create a new
Description
Creates a new transform initialized as the identity
transform. The identity transform has no rotation and a
vector position of
(0,0,0)
Access
Get and set
Get and set
data object:
transform
Description
Script vector object describing the
position of a transform with the value
vector(xOffset, yOffset, zOffset)
model.transform position represents the
model's position in relation to its parent.
Script vector object describing the x, y,
and z scale of the transform with the
vector value
vector(xScale, yScale,
.
zScale)
Scaling is always applied model-
relative.
Returns
A new vector object
A new vector object
A new vector object
A new vector object
A new vector object
A new vector object
Returns
A new transform
object
Default
vector
(0,0,0)
. A
vector
(1,1,1)
Transforms
399

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-USING DIRECTOR and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Director mx 2004

Table of Contents