3D Lingo Dictionary > T-Z > textureLayer |  |

textureLayer

5240 | Lingo_3d_mesh_textureLayer_count_help

5242 | Lingo_3d_mesh_texturelayer_add_help

Syntax

    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`, `count`, `texture`, `textureModeList`