
Using 3D behaviors
327
These properties can be set while the text is in 2D mode. They have no visible effect until the text
appears in 3D mode.
When you access the properties listed in the following table for an extruded 3D text model that
you created by using the
extrude3D
method, you must refer to the model resource of the text.
The Lingo syntax for this is shown in the following example:
member(
whichMember
).model[
modelIndex
].resource.
3DTextProperty
For example, to set the
bevelDepth
property of the first model in cast member 1 to a value of 25,
use the following syntax:
member(1).model[1].resource.bevelDepth = 25
Using 3D behaviors
Director includes a library of behaviors that lets you build and control a 3D environment without
any knowledge of Lingo or JavaScript syntax. Although scripting is still required for complex
projects, you can build simple 3D movies with behaviors alone.
Property
Access
Description
Range or Default
bevelDepth
Get and set
Degree of beveling on front or back
faces.
Floating-point value from
1.0 to 100.0
Default is 1.0
bevelType
Get and set
Type of bevel.
#none
#miter
#round
Default is
#miter
displayFace
Get and set
Faces of shape to display.
#front
#tunnel
#back
Default is to show all three
faces
displayMode
Get and set
Specifies how the text appears.
#modeNormal
#Mode3D
Default is
#modeNormal
,
which is 2D text
member(1).
extrude3d
(member(2))
Not applicable
Creates a new model resource in
member 2 by extruding the text in
member 1. Member 1 must be a text
cast member.
Specify an existing 3D
cast member
smoothness
Get and set
Number of subdivisions for curved
outlines.
Integer from 1 to 100
Default is 5
tunnelDepth
Get and set
Extrusion depth.
Floating-point value from
1.0 to 100.0
Summary of Contents for DIRECTOR MX 2004-USING DIRECTOR
Page 1: ...DIRECTOR MX 2004 Using Director...
Page 16: ...16 Chapter 1 Introduction...
Page 82: ...82 Chapter 3 Sprites...
Page 98: ...98 Chapter 4 Animation...
Page 134: ...134 Chapter 5 Bitmaps...
Page 242: ...242 Chapter 10 Sound and Synchronization...
Page 274: ...274 Chapter 11 Using Digital Video...
Page 290: ...290 Chapter 12 Behaviors...
Page 302: ...302 Chapter 13 Navigation and User Interaction...
Page 334: ...334 Chapter 15 The 3D Cast Member 3D Text and 3D Behaviors...
Page 392: ...392 Chapter 16 Working with Models and Model Resources...
Page 418: ...418 Chapter 18 Movies in a Window...
Page 446: ...446 Chapter 22 Managing and Testing Director Projects...