Adobe 65036570 - Director - PC User Manual page 352

User guide
Hide thumbs Also See for 65036570 - Director - PC:
Table of Contents

Advertisement

Model methods
Use the following methods to work with models:
Method
addChild(aNode,
preserveWorld)
child[index]
child(name)
clone(name)
cloneDeep(name)
addtoWorld()
remove
FromWorld()
isInWorld()
Description
Adds
to this model's list of children. An equivalent
aNode
operation is to set
aNode.parent
The
argument is optional. It can have two
preserveWorld
values:
or
#preserveWorld
#preserveParent
value is
(he default), the world transform
#preserveWorld
of the child being added remains intact. If the value is
, the child's existing transform is inter-
#preserveParent
preted as parent-relative.
Returns the child at the specified position in the index.
Returns the child named
.
name
Clones a model named
, adds it to the child list of the
name
model's parent, and adds it to the world.
The clone shares the same model resource, shader list, and
parent as the original model, but it has unique copies of the
model's transform and modifier properties.
All children of the model are automatically cloned. This can
be avoided by removing the children, performing the cloning
operation, and then adding the children back.
If the name is omitted or is "", the clone isn't added to the
model palette, has no parent, and has no children. This
option lets you quickly create temporary model instances.
Clones both the model and the model resource used by the
model's children. Modifications to the clones' resource don't
affect the source model's resource.
This is a more memory-intensive operation than
.
clone(name)
Adds the model to the currently active 3D world, setting its
parent as "world. " Equivalent to
model.parent=member("scene").group
("world")
All newly created models are added to the world by default,
without it being necessary to use this method.
For models whose parent hierarchy terminates in the world,
this sets their parent to
and removes them from the
void
world. Otherwise it does nothing.
Returns a Boolean value indicating if the model is currently in
the world (TRUE) or not (FALSE). This is useful for detecting if
a given node's parent-hierarchy tree terminates with the
world group object or not.
Returns
Nothing.
to equal
.
this model
. If the
Node object.
Node object.
Model object.
Model object.
Nothing.
Nothing.
TRUE (1)
FALSE (0).
ADOBE DIRECTOR 11.0
User Guide
or
341

Advertisement

Table of Contents
loading

This manual is also suitable for:

Director 11

Table of Contents