Transform methods
Use these methods to work with transforms:
Method
rotate
(xAngle,
yAngle, zAngle)
preRotate
(xAngle,
yAngle, zAngle)
rotate
(point,
vector, angle)
preRotate
(point,
vector, angle)
translate
(xIncrement,yInc
rement,zIncremen
t)
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 local origin will be at
parent is 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 local origin will be at
parent is the world.
Similar to
transform.rotate(xAngle, yAngle, zAngle)
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 local origin will be at
parent is the world.
Similar to
transform.preRotate(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.preRotate(vector(100,0,0)
vector(0,1,0))
After this series of transformations, performed in this order, the
model's local origin will be at
parent is the world.
Translates the position of the transform relative to the
transform's current orientation:
model.transform.identity()
model.transform.rotate(0,90,0)
model.transform.translate(100,0,0)
After this series of transformations, performed in this order, the
model's local origin will be at
parent is the world.
, assuming the model's
(0,100,0)
, assuming the model's
(100,0,0)
, assuming the model's
(250,0,0)
, assuming the model's
(150,0,0)
, assuming the model's
(100,0,0)
Returns
Nothing
Nothing
, except
Nothing
,
Nothing
Nothing
Transforms
401
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