User Guide
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