What's New in Director 8.5 > Working with Models and Model Resources > Model resources > Common model resource properties

 

Common model resource properties

The following properties are shared by all model resources:

PropertyName

Access

Description

Range orDefault

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.

modelResource.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.