The following commands and properties perform basic model resource operations:
Command
Function
modelResource.
Returns the number of model resource objects
included in the cast member.
count
modelResource.
Returns the model resource named name.
(
)
name
.
modelResource
Returns the model resource at the designated
[
]
position in the index. The index number can change
index
if model resources are added or deleted.
(
newMesh
name,
Creates a new mesh model resource.
numFaces,
numFaces is the user-specified number of triangles.
numVertices,
numVertices is the user-specified number of
numNormals
vertices. A vertex can be used by more than one
numColors,
face.
numTexture
numNormals is the user-specified number of
)
Coordinates
normals. Enter 0 or omit this step to use the
generateNormals() method.
numColors is the user-specified number of colors.
You can specify a color for each point of a triangle.
numTextureCoordinates is the number of user-
specified texture coordinates. Enter 0 or omit this
step to get the default coordinates.
newModel
Creates a new model resource and adds it to the
(
model resource object list. The type can be
Resource
name,
)
type
#plane, #box, #sphere, #cylinder, #extrusion,
or #particle.
newModel
Creates a new model resource with the specified
(
facing and adds it to the model resource object list.
Resource
name,
)
type, facing
The type can be #plane, #box, #sphere, or
#cylinder. The facing can be #front, #back, or
#both.
Deletes the model resource named name. Lingo
deleteModel
(
)
Resource
name
references to this model resource persist but can do
nothing.
Deletes the model resource with the given index
deletemodel
(
)
Resource
index
number. Lingo references to this model resource
persist but can do nothing.
Returns
Integer.
Returns the model resource object
named name, if it exists.
Returns void if the object does not
exist.
Returns the model resource object
at that index number if it exists.
Returns void if the object does not
exist at that index number.
Returns a new mesh
model resource with a unique
name. If the name isn't unique,
returns a Lingo error.
Returns a new model resource
object with a unique name. If the
name isn't unique, returns a Lingo
error.
Returns a new model resource
object with a unique name. If the
name isn't unique, returns a Lingo
error.
TRUE (1) if the model resource
named name exists. FALSE (0) if
the model resource named name
doesn't exist.
TRUE (1) if the model resource
with this index number exists.
FALSE (0) if the model resource
with this index number doesn't
exist.
The 3D Cast Member, 3D Text, and 3D Behaviors 457
Need help?
Do you have a question about the DIRECTOR MX-USING DIRECTOR MX and is the answer not in the manual?