
344
Chapter 16: Working with Models and Model Resources
The extruder model resource
You can create extruder model resources only by using an existing text cast member. In many
cases, you may choose to use the 3D text capabilities of the Property inspector instead.
Creating an extruder model resource is simple. If member 1 is a text cast member and member 2
is a 3D cast member, use the following script:
member(1).extrude3d(member(2))
This generates a model resource in member 2 that is an extrusion of the 2D text in member 1.
Extruder model resources inherit all the 3D-related properties of the source text cast member.
For example:
mr = member("text").extrude3d(member("3D"))
put mr.smoothness
-- 5
put mr.tunnelDepth
-- 50
emitter.
path
Get and set
Vector positions that define the path the
particles follow.
Vector list.
emitter.
path
Strength
Get and set
Degree to which particles remain on a
path.
Percentage between
0.0
and
100.0
.
emitter.min
Speed
Get and set
Minimum emission speed. (Particles are
emitted at random speeds between a
minimum and a maximum.)
Settable value. The
default is
1.0
.
emitter.max
Speed
Get and set
Maximum emission speed. (Particles are
emitted at random speeds between a
minimum and a maximum.)
Settable value. The
default is
1.0
.
emitter.drag
Get and set
A drag value affecting simulation at each
animation step.
Percentage between
0.0
and
100.0
.
emitter.gravit
y
Get and set
Vector representing simulated gravity.
The vector’s length indicates its strength.
Any vector.
emitter.wind
Get and set
A vector representing simulated wind
pushing particles in a given direction. The
vector’s length indicates its strength.
Any vector.
Property
Access
Description
Value Range
Содержание DIRECTOR MX 2004-USING DIRECTOR
Страница 1: ...DIRECTOR MX 2004 Using Director...
Страница 16: ...16 Chapter 1 Introduction...
Страница 82: ...82 Chapter 3 Sprites...
Страница 98: ...98 Chapter 4 Animation...
Страница 134: ...134 Chapter 5 Bitmaps...
Страница 242: ...242 Chapter 10 Sound and Synchronization...
Страница 274: ...274 Chapter 11 Using Digital Video...
Страница 290: ...290 Chapter 12 Behaviors...
Страница 302: ...302 Chapter 13 Navigation and User Interaction...
Страница 334: ...334 Chapter 15 The 3D Cast Member 3D Text and 3D Behaviors...
Страница 392: ...392 Chapter 16 Working with Models and Model Resources...
Страница 418: ...418 Chapter 18 Movies in a Window...
Страница 446: ...446 Chapter 22 Managing and Testing Director Projects...