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
shader named Chrome:
member("Car").model("Bumper").shaderList[2] = \
member("Car").shader("Chrome")
This statement sets the all the shaders in 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
modifier and
toon
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
by the
colorSteps
Example
The following statement sets the
named Teapot to 50. Half of the colors available to the
for the shadow area of the model's surface.
member("shapes").model("Teapot").toon.shadowPercentage = 50
See also
colorSteps,
shadowStrength
988
Chapter 14: Properties
shader property; indicates the percentage of available colors that
painter
modifier and
toon
property of the model's
shadowPercentage
of the model named Bumper to the
shaderList
of the model named Bumper to the
shaderList
shader for a model is determined
painter
modifier or
toon
painter
property of the
modifier for this model will be used
toon
shader.
modifier for the model
toon
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