commandDown
703
colorSteps
Usage
member(
whichCastmember
).model(
whichModel
).toon.colorSteps
member(
whichCastmember
).model(
whichModel
).shader.colorSteps
member(
whichCastmember
).shader(
whichShader
).colorSteps
Description
3D
toon
modifier and
painter
shader property; the maximum number of colors available for use
by the
toon
modifier or
painter
shader. The value of this property can be 2, 4, 8, or 16. If you
set the value of
colorSteps
to any other number, it will be rounded to one of these.
The default value is 2.
Example
This statement limits the number of colors available for use by the
toon
modifier for the model
named Teapot to 8. The teapot will be rendered with a maximum of eight colors.
member("shapes").model("Teapot").toon.colorSteps = 8
See also
highlightPercentage
,
shadowPercentage
commandDown
Usage
-- Lingo syntax
_key.commandDown
// JavaScript syntax
_key.commandDown;
Description
Key property; determines whether the Control key (Windows) or the Command key (Macintosh)
is being pressed. Read-only.
This property returns
TRUE
if the Control or Command key is being pressed; otherwise, it
returns
FALSE
.
You can use
commandDown
together with the
key
property to determine whether the Control or
Command key is being pressed in combination with another key. This lets you create handlers
that are executed when the user presses specified Control or Command key combinations.
Control or Command key equivalents for the Director authoring menus take precedence while
the movie is playing, unless you have installed custom Lingo or JavaScript syntax menus or are
playing a projector version of the movie.
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...