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
Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...