656
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
textureList
Syntax
member(
whichMember
).model(
whichModel
).shader(
whichShader
).textureList
member(
whichMember
).model(
whichModel
).shader(
whichShader
).textureList[
index
]
Description
3D shader property; determines the list of textures applied to the shader. A shader can have up to
8 layers of textures. When tested, this property returns a linear list of texture objects. When set
without specifying an index, this property specifies the texture object to be applied to all layers.
Setting the
textureList
property to
VOID
disables texturing for all layers. The default value is
VOID
.
To test or set the texture object for a specific texture layer, include an index value.
Example
This statement sets the 3rd texture layer of the shader named “WallSurface” to the texture named
“BluePaint” in the cast member named “Room”:
member(
3
).model("Car").shader("WallSurface").textureList[
3
] = \
member("Room").texture("BluePaint")
See also
textureModeList
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...