User Guide

832 Chapter 14: Properties
See also
newLight, deleteLight
lineColor
Usage
member(whichCastmember).model(whichModel).inker.lineColor
member(whichCastmember).model(whichModel).toon.lineColor
Description
3D toon and inker modifier property; indicates the color of the lines drawn on the model by the
modifier. For this property to have an effect, either the modifier’s
creases, silhouettes, or
boundary
property must be set to TRUE.
The default value for this property is
rgb(0, 0, 0).
Example
This statement sets the color of all lines drawn by the toon modifier on the model named Teapot
to
rgb(255, 0, 0), which is red:
member("shapes").model("Teapot").toon.lineColor = rgb(255, 0, 0)
See also
creases, silhouettes, boundary, lineOffset
lineCount
Usage
-- Lingo syntax
memberObjRef.lineCount
// JavaScript syntax
memberObjRef.lineCount;
Description
Cast member property; indicates the number of lines that appear in the field cast member on the
Stage according to the way the string wraps, not the number of carriage returns in the string.
Example
This statement determines how many lines the field cast member Today’s News has when it
appears on the Stage and assigns the value to the variable
numberOfLines:
--Lingo syntax
numberOfLines = member("Today’s News").lineCount
// JavaScript syntax
var numberOfLines = member("Today’s News").lineCount;