User Guide

368 Chapter 16: Working with Models and Model Resources
Toon modifier properties
The toon modifier changes a models rendering to imitate a cartoon drawing style. Only a few
colors are used, and the model’s shader, texture, and related properties are ignored.
Use these properties to work with the toon modifier:
Inker modifier properties
The inker modifier adds silhouette, crease, and boundary edges to an existing model. Silhouettes
are edges along the border of a model. Crease edges are created when the angle between two areas
of the mesh exceeds a given threshold.
Property Access Description Default
whichModel.toon.
style
Get and set The following are the possible values:
#toon: sharp transitions between
available colors
#gradient: smooth transitions between
available colors
#black and white: sharp transitions
between black and white
#gradient
whichModel.toon.
colorSteps
Get and set Maximum number of colors available,
rounded to the nearest power of
2, with a
limit of
16
2
whichModel.toon.
shadowPercentage
Get and set The percentage of color steps to be
used in shadows
50
whichModel.toon.
highlightPercentage
Get and set The percentage of color steps to be
used in highlight
50
whichModel.toon.
shadowStrength
Get and set A floating-point value that determines
shadow darkness
1.0
whichModel.toon.
highlightStrength
Get and set A floating-point value that determines
highlight brightness
1.0
whichModel.toon.
lineColor
Get and set Color object describing line color Black
(rgb 0,0,0)
whichModel.toon.
silhouettes
Get and set TRUE (1) or FALSE (0) value indicating
presence or absence of lines around
silhouettes
TRUE (1)
whichModel.toon.
creases
Get and set TRUE (1) or FALSE (0) value indicating
whether lines are drawn when mesh
boundaries meet at a crease
TRUE (1)
whichModel.toon.
creaseAngle
Get and set A floating-point value controlling crease
angle detection
0.01
whichModel.toon.
boundary
Get and set TRUE (1) or FALSE (0) value indicating
whether lines are drawn at boundary of
surface
TRUE (1)