EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 1029

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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)