3D Lingo Dictionary > C-D > colorSteps |  |

colorSteps

Syntax

    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`