Modifiers - MACROMEDIA DIRECTOR MX-USING DIRECTOR MX Use Manual

Table of Contents

Advertisement

Command
translate
(
xIncrement,
yIncrement,
zIncrement,
)
relativeTo
translate
(
direction
)
Vector, relativeTo
translate
(
x,y,z,
)
relativeTo
rotate(
x,y,z,
)
relativeTo
rotate (
position,
axis, angle, relativeTo
pointAt(
world
)
Position, worldUp
getWorld
Transform()

Modifiers

Modifiers control how a model is rendered or how it animates. They are attached to a model with
the
addModifier()
manipulated with Lingo. The tables that follow detail the properties of the modifiers included
with Director MX.
Level of detail (LOD) modifier properties
The level of detail (LOD) modifier provides per-model control over the number of polygons used
to render a model, based on the model's distance from the camera. This modifier is attached to all
imported models.
498
Chapter 19
Description
Moves the group forward by
yIncrement
along the y-axis, and
z-axis.
relativeTo
The
parameter is optional. It determines how
arguments are interpreted. The possible values are as follows:
#self
: the default. Increments are applied relative to the
group's local coordinate system.
#parent
: increments are relative to the group's parent's
coordinate system.
#world
: increments are relative to the world coordinate
#parent
system. Equivalent to
node (group, light, camera, or group): increments are relative
to the coordinate system of the argument object.
directionVector.length()
Moves the group
directionVector
direction of the vector
relativeTo
argument is optional and defaults to
Moves the group distance
the y-axis, and distance z along the z-axis. The
argument is optional and defaults to
This command can also be written as
translate(vector(x,y,z) relativeTo)
x
Rotates the group by
around the y-axis, and z degrees around the z-axis.
relativeTo
The
argument is optional and defaults to
#self
. If included, it defines the coordinate space of the axes.
This command can also be written as
rotate(vector(x,y,z) relativeTo)
Rotates the group around the axis vector in the specified
)
position the specified number of degrees. The
argument is optional and defaults to
Rotates the model until it points at the world-relative position
worldPosition. The optional
general position of the model's Up axis. The exact position
can't be determined using this method.
Both the object-relative axes are defined by the
pointAtOrientation
object-relative forward direction of vector (
object-relative up direction of vector (
Calculates and returns a transform that converts object-
relative positions for this group into world-relative positions.
command. Once a modifier has been attached, its properties can be
xIncrement
along the x-axis,
zIncrement
if parent is the world.
. The
x
along the x-axis, distance y along
relativeTo
#self
.
degrees around the x-axis, y degrees
.
relativeTo
#self
.
worldUp
argument gives the
property. Default values are an
0
0
-1
,
,
0
1
0
,
,
).
Returns
Nothing
along the
in the
Nothing
#self
.
Nothing
.
Nothing
Nothing
Nothing
) and an
A transform object

Advertisement

Table of Contents
loading

This manual is also suitable for:

Director mx

Table of Contents