
ADOBE DIRECTOR 11.0
User Guide
318
Cameras
Cameras provide different views of the 3D world. A 3D cast member can have many cameras. Each sprite that uses
the cast member can display a different camera view of the 3D world.
Use the following cast member methods and properties to perform basic camera operations:
Groups
Groups are collections of models and other objects that are formally associated with one another. These associations
can be created in your 3D modeling software or with script. Each 3D cast member has a default group called
world
,
which is the cast member.
Groups simplify the rotation and translation of models by letting all members of a group move together with a single
command. A group has a name, a transform, and a parent, and can also have children. It has no other properties.
Use the following cast member methods and properties to perform basic group operations:
Method
Function
Returns
camera.count
Returns the number of camera objects included in the
cast member.
Integer.
camera(
name
)
Returns the camera named
name
.
Returns the camera object named
name
if it exists. Returns
void
if the
object does not exist.
camera[
index
]
Returns the camera at the designated position in the
index. The index number can change if cameras are
added or deleted.
Returns the camera object at that
index number if it exists. Returns
void
if the object does not exist at
that index number.
newCamera
(
name
)
Creates a new camera and adds it to the
camera object list.
Returns a new camera object with a
unique name. If the name isn’t
unique, returns a script error.
deleteCamera
(
name
)
Deletes the camera named
name
. Script references to
this camera persist but can do nothing.
TRUE (1)
if the camera named
name
exists.
FALSE (0)
if
the camera named
name
doesn’t
exist.
deleteCamera
(
index
)
Deletes the camera with the given index number.
Script references to this camera persist but can do
nothing.
TRUE (1)
if the camera with this
index number exists.
FALSE (0)
if
the camera with this index number
doesn’t exist.
Содержание 65036570 - Director - PC
Страница 1: ...i ADOBE DIRECTOR 11 USER GUIDE...