3D Lingo Dictionary > L-N > length |
![]() ![]() ![]() |
length
Syntax
member(whichCastmember
).modelResource(whichModelResource
).lengthvectorReference
.length
Description
3D #box
model resource, #plane
model resource, and vector property; indicates the length in world units of the box or plane.
The length of a box is measured along its Z axis. The default length of a box is 50.
The length of a plane is measured along its Y axis. The default length of a plane is 1.
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
![]() ![]() ![]() |