709
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)
vertices
Syntax
member(
whichCastmember
).modelResource(
whichModelResource
).\
face[
faceIndex
].vertices
Description
3D face property; when used with a model resource whose type is
#mesh
, this property allows you
to get or set which vertices from the resource’s
vertexList
property to use for the mesh face
specified by
faceIndex
.
This property is a linear list of three integers corresponding to the index positions of the three
vertices, as found in the mesh’s
vertexList
property, that comprise the specified face.
The vertices must be specified in the list using counterclockwise winding in order to achieve an
outward pointing surface normal.
If you make changes to this property or use the
generateNormals()
command, you will need to
call the
build()
command in order to rebuild the mesh.
Example
This example displays the
vertexList
of the mesh model resource named SimpleSquare, then it
displays the
vertices
property for the second face of that mesh:
put member("3D").modelResource("SimpleSquare").vertexList
-- [vector( 0.0000, 0.0000, 0.0000), vector( 0.0000, 5.0000, \
0.0000), vector( 5.0000, 0.0000, 0.0000), vector( 5.0000, \
5.0000, 0.0000)]
put member("3D").modelResource("SimpleSquare").face[1].vertices
-- [3, 4, 1]
See also
face
,
vertexList (mesh deform)
,
generateNormals()
video (QuickTime, AVI)
Syntax
member(
whichCastMember
).video
the video of member
whichCastMember
Description
Digital video cast member property; determines whether the graphic image of the specified digital
video cast member plays (
TRUE
or 1) or not (
FALSE
or 0).
Only the visual element of the digital video cast member is affected. For example, when
video
is
set to
FALSE
, the digital video’s soundtrack, if present, continues to play.
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...