![MACROMEDIA DIRECTOR MX 2004 Reference Download Page 142](http://html1.mh-extra.com/html/macromedia/director-mx-2004/director-mx-2004_reference_687516142.webp)
142
Chapter 8: 3D Objects
Camera
Represents a Camera object.
A camera controls how a 3D sprite views the 3D world. A 3D sprite displays a particular camera’s
view into the world.
You can create a reference to a camera by using the
camera
property of the 3D
Member
object.
The
camera
property gets the camera at a specified index position in the list of cameras. In Lingo,
you use the
camera
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 camera of the 3D cast member "family
room", and assigns it to the variable
myCamera
.
-- Lingo syntax
myCamera = member("family room").camera[2]
// JavaScript syntax
var myCamera = member("family room").getPropRef("camera", 2);
Method summary for the Camera object
Property summary for the Camera object
Method
addBackdrop
addOverlay
insertBackdrop
insertOverlay
removeBackdrop
removeOverlay
Property
backdrop
fog
.
far (fog)
backdrop
[].
blend (3D)
fog
.
near (fog)
backdrop
[].
loc (backdrop and overlay)
hither
backdrop
[].
regPoint (3D)
orthoHeight
backdrop
[].
rotation (backdrop and overlay)
overlay
backdrop
[].
scale (3D)
overlay
[].
blend (3D)
backdrop
[].
source
overlay
[].
loc (backdrop and overlay)
backdrop
.
count (3D)
overlay
[].
regPoint (3D)
child (3D)
overlay
[].
rotation (backdrop and overlay)
colorBuffer.
clearAtRender
overlay
[].
scale (3D)
colorBuffer.
clearValue
overlay
[].
source
fieldOfView (3D)
overlay
.
count (3D)
Summary of Contents for DIRECTOR MX 2004
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...