![MACROMEDIA DIRECTOR MX 2004 Reference Download Page 834](http://html1.mh-extra.com/html/macromedia/director-mx-2004/director-mx-2004_reference_687516834.webp)
834
Chapter 14: Properties
lineOffset
Usage
member(
whichCastmember
).model(
whichModel
).toon.lineOffset
member(
whichCastmember
).model(
whichModel
).inker.lineOffset
Description
3D
toon
and
inker
modifier property; indicates the apparent distance from the model’s surface
at which lines are drawn by the modifier. For this property to have an effect, the modifier’s
useLineOffset
property must be set to
TRUE
, and one or more of its
creases
,
silhouettes
, or
boundary
properties must also be set to
TRUE
.
This range of this property is -100.00 to +100.00. Its default setting is -2.0.
Example
The following statement sets the
lineOffset
property of the
toon
modifier for the model named
Teapot to 10. The lines drawn by the toon modifier on the surface of the model will stand out
more than they would at the default setting of -2.
member("shapes").model("Teapot").toon.lineOffset = 10
See also
creases
,
silhouettes
,
boundary
,
useLineOffset
,
lineColor
lineSize
Usage
member(
whichCastMember).
lineSize
the lineSize of member
whichCastMember
sprite
whichSprite.
lineSize
the lineSize of sprite
whichSprite
Description
Shape cast member property; determines the thickness, in pixels, of the border of the specified
shape cast member displayed on the Stage. For nonrectangular shapes, the border is the edge of
the shape, not its bounding rectangle.
The
lineSize
setting
of
the sprite takes precedence over the
lineSize
setting
of
the member. If
Lingo changes the member’s
lineSize
setting while a sprite is on the Stage, the sprite’s
lineSize
setting remains in effect until the sprite is finished.
For the value set by Lingo to last beyond the current sprite, the sprite must be a scripted sprite.
This property can be tested and set.
Example
This statement sets the thickness of the shape cast member Answer Box to 5 pixels:
member("Answer Box").lineSize = 5
This statement displays the thickness of the border of sprite 4:
thickness = sprite(4).lineSize
This statement sets the thickness of the border of sprite 4 to 3 pixels:
sprite(4).lineSize = 3
Summary of Contents for DIRECTOR MX 2004
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...