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.
Содержание DIRECTOR MX-USING DIRECTOR MX
Страница 1: ...Using Director MX Macromedia Director MX...
Страница 12: ...Contents 12...
Страница 156: ...Chapter 4 156...
Страница 202: ...Chapter 6 202...
Страница 244: ...Chapter 7 244...
Страница 292: ...Chapter 10 292...
Страница 330: ...Chapter 12 330...
Страница 356: ...Chapter 13 356...
Страница 372: ...Chapter 14 372...
Страница 442: ...Chapter 16 442...
Страница 472: ...Chapter 18 472...
Страница 520: ...Chapter 19 520...
Страница 536: ...Chapter 20 536...
Страница 562: ...Chapter 23 562...
Страница 566: ...Chapter 24 566...
Страница 602: ...Chapter 27 602...