Command
cloneMotion
FromCastMember
name
motion
(
,
,
castmember
)
newModel
Resource(
name,
type)
newMesh(
name,
numFaces,
numVertices,
numNormals
numColors,
numTexture
)
Coordinates
Models
Models can be referred to by name or number. Models can be added to or removed from the
world at any time.
In the member's parent-child hierarchy, each model must have one parent, but it can have an
unlimited number of children. A child's position and orientation depend on its parent's position
and orientation, and it changes when the position and orientation of the parent changes. Models
that don't have another model and a parent have the group named world as their parent. In this
case, their
transform
identical to their
relationship both to their immediate parent and to the world parent. You can add or remove
models from the 3D world at any time by using the
commands.
For example, if the first child of the model named
Lingo would refer to the position of the wheel relative to the model named
transform
car1.child(1).transform.position
To refer to the position of the wheel model relative to the world itself, use
getWorldTransform()
car1.child(1).getWorldTransform().position
Node types
A model is one of four types of objects that share the same transform, parent, and child
properties. The others are cameras, lights, and groups. Models, cameras, lights, and groups are
generically referred to as node types or nodes. Nodes can be each other's parents or children, so long
as any one node has exactly one parent. A node can have any number of children. A model, for
example, can be the child of a light and the parent of a group.
482
Chapter 19
Description
Performs a deep clone of a motion from one cast member
and puts it into another cast member.
Creates a new model resource and adds it to the model
resource palette. The
#sphere
#cylinder
,
type
The
cannot be
newMesh
resource, use the
Creates a new mesh model resource.
numFaces
is the user-specified number of triangles.
numVertices
is the user-specified number of vertices. A
vertex can be used by more than one face.
numNormals
is the user-specified number of normals.
0
Enter
or omit this step to use the
method.
numColors
is the user-specified number of colors. You
can specify a color for each point of a triangle.
numTextureCoordinates
specified texture coordinates. Enter
get the default coordinates.
property describes their position and rotation in the 3D world, and is
getWorldTransform()
:
type
#plane
#box
can be
,
#particle
, or
.
#mesh
. To create a new mesh model
command detailed below.
generateNormals()
is the number of user-
0
or omit this step to
property. All models that have models as parents have a
addToWorld()
is a wheel model, the following
car1
Returns
A motion object
New model resource
,
object
New mesh model
resource
or
removeFromWorld()
car1
:
Need help?
Do you have a question about the DIRECTOR MX-USING DIRECTOR MX and is the answer not in the manual?
Questions and answers