1078
Chapter 14: Properties
See also
addVertex()
,
count()
,
deleteVertex()
,
moveVertex()
,
moveVertexHandle()
,
originMode
,
vertex
vertexList (mesh generator)
Usage
member(
whichCastmember
).modelResource(
whichModelResource
).vertexList
Description
3D property; when used with a model resource whose type is
#mesh
, allows you to get or set the
vertexList
property for the model resource.
The
vertexList
is a linear list of each vertex used in the mesh. A single vertex may be shared by
numerous faces of the mesh. You can specify a list of any size for this property, but it will store
only the number of items specified when using the
newMesh()
command to create the
#mesh
model resource.
Example
This statement sets the
vertexList
of the model resource named Triangle:
member("Shapes").modelResource("Triangle").vertexList = \
[vector(0,0,0), vector(20,0,0), vector(20, 20, 0)]
See also
newMesh
,
face
,
vertices
vertexList (mesh deform)
Usage
member(
whichCastmember
).model(
whichModel
).meshDeform.mesh\
[
index
].vertexList
Description
3D property; when used with a model with the
#meshDeform
modifier attached, it allows you to
get or set the
vertexList
property for the specified mesh within the referenced model.
The
vertexList
is a linear list of each vertex used in the specified mesh. A single vertex may be
shared by numerous faces of the mesh.
If a model makes use of the
#sds
or
#lod
modifiers in addition to the
#meshDeform
modifier,
then it is important to know that the value of this property will change under the influence of the
#sds
or
#lod
modifiers.
Example
This statement displays the
#meshDeform
modifier’s
vertexList
for the first mesh in the model
named Triangle:
put member("Shapes").model("Triangle").meshDeform.mesh[1].vertexList
-- [vector(0,0,0), vector(20,0,0), vector(20, 20, 0)]
See also
face
,
vertices
,
mesh (property)
Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...