The following methods and properties can be used to perform basic light operations:
Method
light.count
light(name)
light[index]
newLight(name,
type)
deleteLight
(name)
deleteLight
(index)
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.
The following cast member methods and properties can be used to perform basic
camera operations:
Method
camera.count
camera(name)
camera[index]
newCamera
(name)
322
Chapter 15: The 3D Cast Member, 3D Text, and 3D Behaviors
Function
Returns the number of light objects included
in the cast member.
Returns the light named
Returns the light at the designated position in
the index. The index number can change if
lights are added or deleted.
Creates a new light and adds it to the light
object list. The
can be
type
,
, or
#directional
#point
Deletes the light named
references to this light persist but can
do nothing.
Deletes the light with the given index
number. Script references to this light persist
but can do nothing.
Function
Returns the number of camera objects
included in the cast member.
Returns the camera named
Returns the camera at the designated
position in the index. The index number can
change if cameras are added or deleted.
Creates a new camera and adds it to the
camera object list.
Returns
Integer.
.
Returns the light object named
name
name
the object does not exist.
Returns the light object at that
index number if it exists.
Returns
not exist at that index number.
Returns a new light object with
,
a unique name. If the name
#ambient
isn't unique, returns a script
#spot.
error.
. Script
name
TRUE (1)
name
light named
TRUE (1)
index number exists.
(0)
number doesn't exist.
Returns
Integer.
.
Returns the camera object
name
named
void
exist.
Returns the camera object at
that index number if it exists.
Returns
not exist at that index number.
Returns a new camera object
with a unique name. If the
name isn't unique, returns a
script error.
if it exists. Returns
void
if the object does
void
if the light named
exists.
if the
FALSE (0)
doesn't exist.
name
if the light with this
FALSE
if the light with this index
if it exists. Returns
name
if the object does not
if the object does
void
if
Need help?
Do you have a question about the DIRECTOR MX 2004-USING DIRECTOR and is the answer not in the manual?
Questions and answers