User Guide

Chapter 19474
Common model resource properties
The following properties are shared by all model resources:
File-defined model resource properties
Model resources defined by a W3D file imported into Director MX or loaded via Lingo have a
type value of #fromfile. File-defined resources are automatically assigned level of detail (LOD)
modifier settings that allow models using those geometries to adjust their level of detail as needed,
depending on the model’s distance from the camera. See “Level of detail (LOD) modifier
properties” on page 498 for more information.
Primitives
Each type of primitive has its own set of Lingo commands and properties used to define its
appearance.
Use the
newModelResource() command to create new primitives at runtime.
Property
Name
Access Description Range or
Default
name Get Unique string naming model resource. If imported, the name of
the model.
If created in Lingo, the
assigned name in the
constructor function.
type Get Type of geometry. #plane
#box
#sphere
#mesh
#cylinder
#particle
#fromfile
bone.count
Get Total number of bones in bones hierarchy. Nonnegative integer.
model
Resource.
getBoneId
("
name")
Get Returns a unique ID for the bone named name
in this model’s bone hierarchy. Returns
FALSE
(0)
if no bone by that name can be found.
None.