User Guide
146 Chapter 8: 3D Objects
Property summary for the Member object
See also
Camera, Group, Light, Model, Model Resource, Motion, Shader, Sprite, Texture
Model
Represents a visible object that a user sees within a 3D world.
A model makes use of a model resource and occupies a specific position and orientation with a
3D world. A model resource is an element of 3D geometry that can be used to draw 3D models.
A model also defines the appearance of the model resource, such as what textures and shaders are
used. For more information about the relationship between models and model resources, see the
Using Director topics in the Director Help Panel.
You can create a reference to a model by using the
model property of the 3D Member object. The
model property gets the model at a specified index position in the list of models. In Lingo, you
use the model property directly from the 3D Member object to create a reference. In JavaScript
syntax, you must use the
getPropRef() method to create a reference.
The following example creates a reference to the second model of the 3D cast member
Transportation and assigns it to the variable myModel.
-- Lingo syntax
myModel = member("Transportation").model[2]
// JavaScript syntax
var myModel = member("Transportation").getPropRef("model", 2);
Property
ambientColor loop (3D)
animationEnabled model
bevelDepth modelResource
bevelType motion
bytesStreamed (3D) percentStreamed (3D)
camera preLoad (3D)
cameraPosition reflectivity
cameraRotation shader
diffuseColor smoothness
directionalColor specularColor
directionalPreset state (3D)
directToStage streamSize (3D)
displayFace texture
displayMode textureMember
group textureType
light tunnelDepth