User Guide
addAt 231
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
Parameters
None.
Example
This statement creates a new texture layer for the first mesh of the model named Ear.
--Lingo syntax
member("Scene").model("Ear").meshdeform.mesh[1].textureLayer.add()
// JavaScript syntax
member("Scene").model("Ear").meshdeform.mesh[1].textureLayer.add();
See also
meshDeform (modifier), textureLayer, textureCoordinateList
addAt
Usage
list.AddAt(position, value)
Description
List command; for linear lists only, adds a value at a specified position in the list.
This command returns an error when used with a property list.
Parameters
position
Required. An integer that specifies the position in the list to which the value specified
by
value is added.
value Required. A value to add to the list.
Example
This statement adds the value 8 to the fourth position in the list named bids, which is
[3, 2, 4, 5, 6, 7]:
bids = [3, 2, 4, 5, 6, 7]
bids.addAt(4,8)
The resulting value of bids is [3, 2, 4, 8, 5, 6, 7].