User Guide

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.