User Guide

830 Chapter 14: Properties
The length of a vector is its distance in world units from vector(0, 0, 0). This is the same as
the magnitude of the vector.
Example
This statement sets the variable myBoxLength to the length of the model resource named
GiftBox.
myBoxLength = member("3D World").modelResource("GiftBox").length
See also
height (3D), width (3D), magnitude
lengthVertices
Usage
member(whichCastmember).modelResource(whichModelResource).\
lengthVertices
Description
3D #box and #plane model resource property; indicates the number of mesh vertices along the
length of the box or plane. Increasing this value increases the number of faces, and therefore the
fineness, of the mesh.
The length of a box is measured along its Z axis. The length of a plane is measured along its
Y axis.
Set the
renderStyle property of a model’s shader to #wire to see the faces of the mesh of the
model’s resource. Set the
renderStyle property to #point to see just the vertices of the mesh.
The value of this property must be greater than or equal to 2. The default value is 4.
Example
The following statement sets the lengthVertices property of the model resource named Tower
to 10. Nine triangles will be used to define the geometry of the model resource along its Y axis;
therefore, there will be ten vertices.
member("3D World").modelResource("Tower").lengthVertices = 10
See also
length (3D)
level
Usage
member(whichCastmember).model(whichModel).lod.level
Description
3D lod modifier property; indicates the amount of detail removed by the modifier when its auto
property is set to FALSE.The range of this property is 0.0 to 100.00.
When the modifier’s
auto property is set to TRUE, the value of the level property is dynamically
updated, but cannot be set.