EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 398

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
398 Chapter 12: Methods
• mesh[index] allows access to the properties of the specified mesh.
Parameters
None.
Example
The following statement displays the number of faces in the model named gbFace:
put member("3D World").model("gbFace").meshDeform.face.count
-- 432
The following statement displays the number of meshes in the model named gbFace:
put member("3D World").model("gbFace").meshDeform.mesh.count
-- 2
The following statement displays the number of faces in the second mesh of the model named
gbFace:
put member("3D World").model("gbFace").meshDeform.mesh[2].face.count
-- 204
See also
mesh (property), addModifier
min
Usage
list.min
min(list)
min (a1, a2, a3...)
Description
Function (Lingo only); specifies the minimum value in a list.
Parameters
a1, a2, a3, ...
Optional. A list of values from which the lowest value is chosen.
Example
The following handler assigns the variable vLowest the minimum value in the list bids, which
consists of [#Castle:600, #Shields:750, #Wang:230]. The result is then inserted in the content of
the field cast member Sorry:
on findLowest bids
vLowest = bids.min()
member("Sorry").text = \
"We're sorry, your bid of $" & vLowest && "is not a winner!"
end
See also
max()