Shaders - Adobe 65036570 - Director - PC User Manual

User guide
Hide thumbs Also See for 65036570 - Director - PC:
Table of Contents

Advertisement

Method
Function
Returns the number of model objects included in the
model.count
cast member.
Returns the model named
model(name)
Returns the model at the designated index position.
model[index]
The index number can change if models lower in the
list are deleted.
Creates a new model named
newModel(name,
modelResource)
world. Fails if a model by that name already exists. The
modelResource
at a later time. If supplied, this second argument must
be an existing model resource object.
Deletes the model named
deleteModel
(name)
this model persist but can do nothing. Children of the
model aren't deleted but are re-parented to the world
group.
Deletes the model with the given index number.
deleteModel
(index)
Script references to this model persist but can
do nothing.
.clone
Creates a copy of the model named
model(name1)
(na
assigns it the name
me2)
same model resource and shader as the original
model; changes to the model resource and shader of
the original model appear in the new model as well.
.
Creates a copy of the model named
model(name1)
clone
assigns it the name
Deep(name2)
copy of the original model's model resource and
shader. Changes to the original model's model
resource and shader have no effect on the new model.
Copies the model named name2 (from the member
cloneModelFromCast
named name3) into the current member. The new
Member
,
,
(name1
name2
copy is named name1. This is similar to the
member(
)
name3
)
cloneDeep()
one cast member to another.

Shaders

A shader defines the basic appearance of a model's surface. You apply textures to shaders. The standard shader is
photorealistic. The following list describes some of the other available shaders:
, which looks like a painted surface
#painter
, which looks like an engraved surface
#engraver
, which looks like a newspaper photograph
#newsprint
Use the following cast member methods and properties to perform basic shader operations:
.
name
and adds it to the
name
argument is optional and can be set
. Script references to
name
and
name1
. The new model uses the
name2
and
name1
. The new model uses a
name2
method, but it copies a model from
Returns
Integer.
Returns the model object named
if it exists. Returns
if the
name
void
object does not exist.
Returns the model object at that
index number if it exists. Returns
if the object does not exist at
void
that index number.
Returns a new model with a unique
name. If the name isn't unique,
returns an error.
if the model named
TRUE (1)
exists.
if the
name
FALSE (0)
model named
doesn't exist.
name
if the model with this
TRUE (1)
index number exists.
FALSE (0)
the model with this index number
doesn't exist.
Returns the model named name2.
Returns the model named name2.
Returns the model named name1.
ADOBE DIRECTOR 11.0
314
User Guide
if

Advertisement

Table of Contents
loading

This manual is also suitable for:

Director 11

Table of Contents