988
Chapter 14: Properties
Set a property of all of the shaders of a model to the same value with this syntax (note the absence
of an index for the shaderList):
member(
whichCastmember
).model(
whichModel
).shaderList.\
whichProperty
=
propValue
Example
This statement sets the second shader in the
shaderList
of the model named Bumper to the
shader named Chrome:
member("Car").model("Bumper").shaderList[2] = \
member("Car").shader("Chrome")
This statement sets the all the shaders in the
shaderList
of the model named Bumper to the
shader named Chrome:
member("Car").model("Bumper").shaderList = \
member("Car").shader("Chrome")
See also
shadowPercentage
shadowPercentage
Usage
member(
whichCastmember
).model(
whichModel
).toon.shadowPercentage
member(
whichCastmember
).model(
whichModel
).shader.shadowPercentage
member(
whichCastmember
).shader(
whichShader
).shadowPercentage
Description
3D
toon
modifier and
painter
shader property; indicates the percentage of available colors that
are used in the area of the model’s surface where light does not create highlights.
The range of this property is 0 to 100, and the default value is 50.
The number of colors used by the
toon
modifier and
painter
shader for a model is determined
by the
colorSteps
property of the model’s
toon
modifier or
painter
shader.
Example
The following statement sets the
shadowPercentage
property of the
toon
modifier for the model
named Teapot to 50. Half of the colors available to the
toon
modifier for this model will be used
for the shadow area of the model’s surface.
member("shapes").model("Teapot").toon.shadowPercentage = 50
See also
colorSteps
,
shadowStrength
Summary of Contents for DIRECTOR MX 2004
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...