Parameters
None.
Example
This statement creates an identity transform and stores it in the variable tTransform:
tTransform = transform()
See also
transform
(property), preRotate, preTranslate(), preScale(), rotate,
translate,
scale (command)
translate
Usage
member(whichCastmember).node(whichNode).translate(xIncrement, \
yIncrement, zIncrement {, relativeTo})
member(whichCastmember).node(whichNode).translate\
(translateVector {, relativeTo})
transform.translate(xIncrement, yIncrement, zIncrement \
{, relativeTo})
transform.translate(translateVector {, relativeTo})
Description
3D command; applies a translation after the current positional, rotational, and scale offsets held
by a referenced node's transform object or the directly referenced transform object. The
translation must be specified as a set of three increments along the three corresponding axes.
These increments may be specified explicitly in the form of
, or by a
zIncrement
translation along the x axis, y about y axis, and z about z axis.
A node can be a camera, model, light or group object.
Parameters
Required if specifying a set of three increments. Specifies the
xIncrement
Required if specifying a set of three increments. Specifies the
yIncrement
Required if specifying a set of three increments. Specifies the
zIncrement
translateVector
components.
z
Optional. Determines which coordinate system's axes are used to apply the desired
relativeTo
translational changes. The
•
applies the increments relative to the node's local coordinate system (the x, y and z axes
#self
specified for the model during authoring). This value is used as the default if you use the
command with a node reference and the
translate
•
applies the increments relative to the node's parent's coordinate system. This value is
#parent
used as the default if you use the
parameter is not specified.
relativeTo
568
Chapter 12: Methods
, where the x component of the vector corresponds to the
translateVector
Required if specifying a vector. Specifies the vector that contains the
parameter can have any of the following values:
relativeTo
translate
xIncrement
parameter is not specified.
relativeTo
command with a transform reference and the
,
, and
yIncrement
-axis increment.
x
-axis increment.
y
-axis increment.
z
,
, and
x
y
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