Motions
A motion is an animation of a model. Motions can be shared by multiple models. A 3D cast
member contains a palette of motions that are available to any model in the world.
The following cast member methods and properties can be used to perform basic
motion operations:
Method
motion.count
motion(name)
motion[index]
newMotion
(name)
deleteMotion
(name)
deleteMotion
(index)
cloneMotionFrom
CastMember
(name1
,
name2
member(
)
name3
)
Lights
Models in the 3D world are illuminated by lights. Each light has a color, direction, intensity, and
other characteristics. By default, each 3D cast member contains one white light, which lets
Director users see the models in the cast member without having to explicitly add a light. This
light has a default position of upper center in the world. You can modify or replace this light with
one or more new lights. To turn off the default light, set its
Function
Returns the number of motion objects
included in the cast member.
Returns the motion named
Returns the motion at the
designated position in the palette of available
motions.
Creates a new motion object.
Deletes the motion named
references to this motion persist but return
.
void
Deletes the motion at the given index. Script
references to this motion persist but return
.
void
Copies a motion object from one cast
,
member to another. Specifically, copies the
motion object named name2 (from the
member named name3) into the current
member. The new copy is named name1.
Returns
Integer.
.
Returns the motion object
name
named
void
exist.
Returns the motion object at
that index number if it exists.
Returns
not exist at that index number.
Returns a new motion object
with a unique name. If the
name isn't unique, returns a
script error.
. Script
name
TRUE (1)
name
the motion named
doesn't exist.
TRUE (1)
index number exists.
(0)
index number doesn't exist.
Returns a reference to the
newly created motion object.
property to
color
if it exists. Returns
name
if the object does not
if the object does
void
if the motion named
exists.
if
FALSE (0)
name
if the motion with this
FALSE
if the motion with this
color(0,0,0)
Lights
.
321
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