3D Lingo Dictionary > T-Z > textureCoordinateList |
![]() ![]() ![]() |
textureCoordinateList
Syntax
member(whichCastmember
).modelResource(whichmodelResource
). textureCoordinateListmodelResourceObjectReference
.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)
![]() ![]() ![]() |