MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 700

Director scripting reference
Table of Contents

Advertisement

colorList
Usage
member(whichCastmember).modelResource(whichModelResource).\
colorList
member(whichCastmember).modelResource(whichModelResource).\
colorList[index]
member(whichCastmember).model(whichModel).meshdeform.mesh\
[meshIndex].colorList
member(whichCastmember).model(whichModel).meshdeform.mesh\
[meshIndex].colorList[index]
Description
3D property; allows you to get or set every color used in a mesh. This command is accessible only
for model resources of the type #mesh. Any single color can be shared by several vertices (faces) of
the mesh. Alternately, you can specify texture coordinates for the faces of the mesh and apply a
shader to models that use this model resource.
This command must be set to a list of the same number of Lingo color values specified in the
call.
newMesh
Example
This statement shows that the third color in the
rgb(255, 0, 0).
put member("shapes").modelResource("mesh2").colorlist[3]
-- rgb(255,0,0)
See also
face[
],
colors
colorRange
Usage
member(whichCastmember).modelResource(whichModelResource).\
colorRange.start
member(whichCastmember).modelResource(whichModelResource).\
colorRange.end
Description
3D
model resource properties; indicate the beginning color and ending color of the
#particle
particles of a particle system.
The
property is the color of the particles when they are created. The
start
color of particles at the end of their lives. The color of each particle gradually changes from the
value of
to the value of
start
The
and
start
end
Example
This statement sets the
first line sets the
rgb(0, 0, 255)
they first appear, and gradually change to blue during their lifetimes.
700
Chapter 14: Properties
over the course of its life.
end
properties have a default value of
properties of the model resource named ThermoSystem. The
colorRange
value to
start
rgb(255, 0, 0)
. The effect of this statement is that the particles of ThermoSystem are red when
of the model resource Mesh2 is
colorList
rgb(255, 255, 255)
, and the second line sets the
property is the
end
.
value to
end

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Director mx 2004

Table of Contents