EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 1078

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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)