734
Chapter 14: Properties
Example
The following statement tests whether the cast member Today’s Events is a QuickTime or AVI
(Audio-Video Interleaved) digital video and displays the result in the Message window:
put member("Today's Events").digitalVideoType
See also
QuickTimeVersion()
direction
Usage
member(
whichCastmember
).modelResource(
whichModelResource
).\
emitter.direction
Description
3D emitter property; a vector that indicates the direction in which the particles of a particle
system are emitted. A particle system is a model resource whose type is
#particle
.
The primary direction of particle emission is the vector set by the emitter’s
direction
property.
However, the direction of emission of a given particle will deviate from that vector by a random
angle between 0 and the value of the emitter’s
angle (3D)
property.
Setting
direction
to
vector(0,0,0)
causes the particles to be emitted in all directions.
The default value of this property is
vector(1,0,0)
.
Example
In this example, ThermoSystem is a model resource whose type is
#particle
. This statement sets
the
direction
property of ThermoSystem’s emitter to
vector(1, 0, 0)
, which causes the
particles of ThermoSystem to be emitted into a conical region whose axis is the X axis of the
3D world.
member("Fires").modelResource("ThermoSystem").emitter.\
direction = vector(1,0,0)
See also
emitter
,
angle (3D)
directionalColor
Usage
member(
whichCastmember
).directionalColor
Description
3D cast member property; indicates the RGB color of the default directional light of the
cast member.
The default value of this property is rgb(255, 255, 255).
Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...