700
Chapter 14: Properties
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
newMesh
call.
Example
This statement shows that the third color in the
colorList
of the model resource Mesh2 is
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
#particle
model resource properties; indicate the beginning color and ending color of the
particles of a particle system.
The
start
property is the color of the particles when they are created. The
end
property is the
color of particles at the end of their lives. The color of each particle gradually changes from the
value of
start
to the value of
end
over the course of its life.
The
start
and
end
properties have a default value of
rgb(255, 255, 255)
.
Example
This statement sets the
colorRange
properties of the model resource named ThermoSystem. The
first line sets the
start
value to
rgb(255, 0, 0)
, and the second line sets the
end
value to
rgb(0, 0, 255)
. The effect of this statement is that the particles of ThermoSystem are red when
they first appear, and gradually change to blue during their lifetimes.
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...