cameraPosition
677
Cameras are stored in the camera palette of the cast member. Use the
newCamera
and
deleteCamera
commands to create and delete cameras in a 3D cast member.
The
camera
property of a sprite is the first camera in the list of cameras of the sprite. The camera
referred to by
sprite(
whichSprite
).camera
is the same as
sprite(
whichSprite
).camera(1)
. Use the
addCamera
and
deleteCamera
commands to build
the list of cameras in a 3D sprite.
For a complete list of camera properties and commands, see the Using Director topics in the
Director Help Panel.
Example
This statement sets the camera of sprite 1 to the camera named TreeCam of the cast member
named Picnic.
sprite(1).camera = member("Picnic").camera("TreeCam")
This statement sets the camera of sprite 1 to camera 2 of the cast member named Picnic.
sprite(1).camera = member("Picnic").camera[2]
See also
bevelDepth
,
overlay
,
modelUnderLoc
,
spriteSpaceToWorldSpace
,
fog
,
clearAtRender
cameraPosition
Usage
member(
whichCastMember
).cameraPosition
sprite(
whichSprite
).cameraPosition
Description
3D cast member and sprite property; indicates the position of the default camera.
The default value of this property is vector(0, 0, 250). This is the position of the default camera in
a newly created 3D cast member.
Example
This statement shows that the position of the default camera of the cast member named Babyland
is the vector (-117.5992, -78.9491, 129.0254).
member("Babyland").cameraPosition = vector(-117.5992, \
-78.9491, 129.0254)
See also
cameraRotation
,
autoCameraPosition
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
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...