3D Lingo Dictionary > A-B > add |  |

add

Syntax

    member(whichCastmember).model(whichModel).meshdeform.mesh[index].textureLayer.add()

Description

3D `meshdeform` modifier command; adds an empty texture layer to the model's mesh.

You can copy texture coordinates between layers using the following code:

    modelReference.meshdeform.texturelayer[a].texturecoordinatelist = modelReference.meshdeform.texturelayer[b].texturecoordinatelist

Example

This statement creates a new texture layer for the first mesh of the model named Ear.

    member("Scene").model("Ear").meshdeform.mesh[1].textureLayer.add()

See also

`meshDeform (modifier)`, `textureLayer`, `textureCoordinateList`