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].
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...