What's New in Director 8.5 > Working with Models and Model Resources > Modifiers > Toon modifier properties

 

Toon modifier properties

The toon modifier changes a model's 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:

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

Lingo 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)