Chapter 19
474
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.
Summary of Contents for DIRECTOR MX-USING DIRECTOR MX
Page 1: ...Using Director MX Macromedia Director MX...
Page 12: ...Contents 12...
Page 156: ...Chapter 4 156...
Page 202: ...Chapter 6 202...
Page 244: ...Chapter 7 244...
Page 292: ...Chapter 10 292...
Page 330: ...Chapter 12 330...
Page 356: ...Chapter 13 356...
Page 372: ...Chapter 14 372...
Page 442: ...Chapter 16 442...
Page 472: ...Chapter 18 472...
Page 520: ...Chapter 19 520...
Page 536: ...Chapter 20 536...
Page 562: ...Chapter 23 562...
Page 566: ...Chapter 24 566...
Page 602: ...Chapter 27 602...