The 3D Cast Member, 3D Text, and 3D Behaviors
457
The following commands and properties perform basic model resource operations:
Command
Function
Returns
modelResource.
count
Returns the number of model resource objects
included in the cast member.
Integer.
modelResource.
(
name
)
Returns the model resource named
name
.
Returns the model resource object
named
name
, if it exists.
Returns
void
if the object does not
exist.
modelResource
.
[
index
]
Returns the model resource at the designated
position in the index. The index number can change
if model resources are added or deleted.
Returns the model resource object
at that index number if it exists.
Returns
void
if the object does not
exist at that index number.
newMesh
(
name
,
numFaces
,
numVertices
,
numNormals
numColors
,
numTexture
Coordinates
)
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. 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.
Returns a new mesh
model resource with a unique
name. If the name isn’t unique,
returns a Lingo error.
newModel
Resource
(
name
,
type
)
Creates a new model resource and adds it to the
model resource object list. The
type
can be
#plane
,
#box
,
#sphere
,
#cylinder
,
#extrusion
,
or
#particle
.
Returns a new model resource
object with a unique name. If the
name isn’t unique, returns a Lingo
error.
newModel
Resource
(
name
,
type
,
facing
)
Creates a new model resource with the specified
facing and adds it to the model resource object list.
The
type
can be
#plane
,
#box
,
#sphere
, or
#cylinder
. The
facing
can be
#front
,
#back
, or
#both
.
Returns a new model resource
object with a unique name. If the
name isn’t unique, returns a Lingo
error.
deleteModel
Resource
(
name
)
Deletes the model resource named
name
. Lingo
references to this model resource persist but can do
nothing.
TRUE (1)
if the model resource
named
name
exists.
FALSE (0)
if
the model resource named
name
doesn’t exist.
deletemodel
Resource
(
index
)
Deletes the model resource with the given index
number. Lingo references to this model resource
persist but can do nothing.
TRUE (1)
if the model resource
with this index number exists.
FALSE (0)
if the model resource
with this index number
doesn’t
exist.
Содержание DIRECTOR MX-USING DIRECTOR MX
Страница 1: ...Using Director MX Macromedia Director MX...
Страница 12: ...Contents 12...
Страница 156: ...Chapter 4 156...
Страница 202: ...Chapter 6 202...
Страница 244: ...Chapter 7 244...
Страница 292: ...Chapter 10 292...
Страница 330: ...Chapter 12 330...
Страница 356: ...Chapter 13 356...
Страница 372: ...Chapter 14 372...
Страница 442: ...Chapter 16 442...
Страница 472: ...Chapter 18 472...
Страница 520: ...Chapter 19 520...
Страница 536: ...Chapter 20 536...
Страница 562: ...Chapter 23 562...
Страница 566: ...Chapter 24 566...
Страница 602: ...Chapter 27 602...