MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 372

Director scripting reference
Table of Contents

Advertisement

interpolate()
Usage
transform1.interpolate(transform2,percentage)
Description
3D
method; returns a copy of
transform
and rotation of
transform1
percentage. The original
interpolateTo()
To interpolate by hand, multiply the difference of two numbers by the percentage. For example,
interpolation from 4 to 8 by 50 percent yields 6.
Example
In this example, tBox is the transform of the model named Box, and tSphere is the transform of
the model named Sphere. The third line of the example interpolates a copy of the transform of
Box halfway to the transform of Sphere.
tBox = member("3d world").model("Box").transform
tSphere = member("3d world").model("Sphere").transform
tNew = tBox.interpolate(tSphere, 50)
See also
interpolateTo()
interpolateTo()
Usage
transform1.interpolateTo(transform2, percentage)
Description
3D
method; modifies
transform
of
to the position and rotation of a new transform by a specified percentage. The
transform1
original
transform1
function.
To interpolate by hand, multiply the difference of two numbers by the percentage. For example,
interpolation from 4 to 8 by 50 percent yields 6.
Parameters
Required. Specifies the transform to which a given transform is interpolated.
transform2
Required. Specifies the rotation percentage of
percentage
Example
In this example, tBox is the transform of the model named Box, and tSphere is the transform of
the model named Sphere. The third line of the example interpolates the transform of Box halfway
to the transform of Sphere.
tBox = member("3d world").model("Box").transform
tSphere = member("3d world").model("Sphere").transform
tBox.interpolateTo(tSphere, 50)
See also
interpolate()
372
Chapter 12: Methods
to the position and rotation of
is not affected. To interpolate
transform1
.
transform1
is changed. To interpolate a copy of
created by interpolating from the position
transform1
transform2
by interpolating from the position and rotation
transform1
transform2
by the specified
, use
transform1
, use the
interpolate()
.

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

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

This manual is also suitable for:

Director mx 2004

Table of Contents