Models - MACROMEDIA DIRECTOR MX 2004-USING DIRECTOR Use Manual

Hide thumbs Also See for DIRECTOR MX 2004-USING DIRECTOR:
Table of Contents

Advertisement

Models

The models in a cast member are the actual visible objects that are seen in the 3D cast member.
Models move according to the motions you assign to them in your 3D modeling software, and
according to animation scripts that you write. Their movement results from repositioning and
reorienting their geometries in 3D space.
The following cast member methods and properties can be used to perform basic
model operations:
Method
model.count
model(name)
model[index]
newModel(name,
modelResource)
deleteModel
(name)
deleteModel
(index)
.clone
model(name1)
ame2)
318
Chapter 15: The 3D Cast Member, 3D Text, and 3D Behaviors
Function
Returns the number of model objects
included in the cast member.
Returns the model named
Returns the model at the designated index
position. The index number can change if
models lower in the list are deleted.
Creates a new model named
to the world. Fails if a model by that name
already exists. The
is optional and can be set at a later time. If
supplied, this second argument must be an
existing model resource object.
Deletes the model named
references to this model persist but can do
nothing. Children of the model aren't deleted
but are re-parented to the world group.
Deletes the model with the given index
number. Script references to this model
persist but can do nothing.
Creates a copy of the model named
(n
and assigns it the name
model uses the same model resource and
shader as the original model; changes to the
model resource and shader of the original
model appear in the new model as well.
.
name
and adds it
name
argument
modelResource
. Script
name
name1
. The new
name2
Returns
Integer.
Returns the model object
named
if it exists.
name
Returns
if the object
void
does not exist.
Returns the model object at
that index number if it exists.
Returns
if the object
void
does not exist at that index
number.
Returns a new model with a
unique name. If the name isn't
unique, returns an error.
if the model named
TRUE (1)
exists.
name
FALSE (0)
model named
doesn't
name
exist.
if the model with this
TRUE (1)
index number exists.
FALSE
if the model with this index
(0)
number doesn't exist.
Returns the model named
name2.
if the

Advertisement

Table of Contents
loading
Need help?

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

This manual is also suitable for:

Director mx 2004

Table of Contents