textureCoordinateList 1029
For more information about texture properties, see the Using Director topics in the Director
Help Panel.
The texture of a particle system is a property of the model resource, whose type is
#particle
.
Example
This statement sets the
texture
property of the shader named WallSurface to the texture named
BluePaint:
member("Room").shader("WallSurface").texture = \
member("Room").texture("BluePaint")
See also
newTexture
,
deleteTexture
textureCoordinateList
Usage
member(
whichCastmember
).modelResource(
whichmodelResource
).
textureCoordinateList
modelResourceObjectReference
.textureCoordinateList
Description
3D property; when used with a model resource whose type is
#mesh
, or with a
meshDeform
modifier attached to a model, this property allows you to get or set the
textureCoordinateList
property of the model resource.
The
textureCoordinateList
property is a list of sublists identifying locations in an image that
are to be used when texture mapping a triangle. Each sublist consists of two values indicating a
location in a texture map. The values must be between 0.0 and 1.0 so that they can be scaled to
arbitrarily sized texture maps. The default is an empty list.
Manipulate
modelResource.face[index].textureCoordinates
or
model.meshdeform.mesh[index].face[index]
to change the mapping between
textureCoordinates
and the corners of a mesh face.
Example
put member(5,2).modelResource("mesh square").\
textureCoordinateList
--[ [0.1, 0.1], [0.2, 0.1], [0.3, 0.1], [0.1, 0.2], [0.2, 0.2], \
[0.3, 0.2], [0.1, 0.3], [0.2, 0.3], [0.3, 0.3] ]
See also
face
,
texture
,
meshDeform (modifier)
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...