1030
Chapter 14: Properties
textureCoordinates
Usage
member(
whichCastmember
).modelResource(
whichModelResource
).\
face[
faceIndex
].textureCoordinates
modelResourceObject
.face[
faceIndex
].textureCoordinates
Description
3D property; identifies which elements in the
textureCoordinateList
to use for the
faceIndex’d
face. This property must be a list of three integers specifying indices in the
textureCoordinateList
, corresponding to the
textureCoordinates
to use for each corner of
the mesh’s face.
See also
face
,
textureCoordinateList
textureLayer
Usage
member(
whichCastmember
).model(
whichModel
).meshDeform.mesh[
index
].\
textureLayer.count
member(
whichCastmember
).model(
whichModel
).meshdeform.mesh[
index
].\
texturelayer.add()
member(
whichCastmember
).model(
whichModel
).meshdeform.mesh[
index
].\
texturelayer[
index
].textureCoordinateList.
Description
3D
meshdeform
modifier properties; using these properties you can get and set information
about the texture layers of a specified mesh.
You can have up to eight texture layers for a shader, each layer can contain only one texture, but
the same texture can be specified for more than one layer. Texture layers are layers of textures used
by shaders.
Use the following properties to access and manipulate texture layers:
meshdeform.mesh[index].texturelayer.count
returns the number of texture layers for the
specified mesh.
model.meshdeform.mesh[index].texturelayer.add()
adds an empty texture layer to the
specified mesh.
model.meshdeform.mesh[index].texturelayer[index].texturecoordinatelist
allows
you to set or get a list of textureCoordinates for a particular layer of the specified mesh. You can
also use this property to copy texture coordinates between texture layers as follows:
model.meshdeform.texturelayer[a].texturecoordinatelist = \
model.meshdeform.texturelayer[b].texturecoordinatelist
See also
meshDeform (modifier)
,
mesh (property)
,
textureCoordinateList
,
add (3D
texture)
,
count
,
texture
,
textureModeList
Содержание 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...