video (QuickTime, AVI) 1079
vertices
Usage
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)
Usage
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.
Example
This statement turns off the video associated with the cast member Interview:
member("Interview").video = FALSE
See also
setTrackEnabled()
,
trackEnabled
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...