535
region
Syntax
member(
whichCastmember
).modelResource(
whichModelResource
).\
emitter.region
modelResourceObjectReference
.emitter.region
Description
3D emitter property; when used with a model resource whose type is
#particle
, allows you to
both get and set the
region
property of the resource’s particle emitter.
The region property defines the location from which particles are emitted. If its value is a
single vector, then that vector is used to define a point in the 3D world from which particles
will be emitted.
If its value is a list of two vectors, then those vectors are used to define the end points of a line
segment from which particles will be emitted.
If its value is a list of four vectors, then those vectors are used to define the vertices of a
quadrilateral from which the particles will be emitted.
The default value for this property is [vector(0,0,0)].
Example
In this example, ThermoSystem is a model resource of the type #particle. This statement specifies
the four corners of a rectangle from which the particles of ThermoSystem originate.
member("Fires").modelResource("ThermoSystem").emitter.region = \
[vector(20,90,100), vector(30,90,100), vector(30,100,100), \
vector(20,100,100)]
See also
emitter
registerForEvent()
Syntax
member(
whichCastmember
).registerForEvent(
eventName
, \
handlerName
,
scriptObject
{,
begin, period
,
repetitions
})
Description
3D command; declares the specified handler as the handler to be called when the specified event
occurs within the specified cast member.
The following parameter descriptions apply to both the
registerForEvent()
and the
registerScript()
commands.
The
handlerName
parameter is the name of the handler that will be called; this handler is found in
the script object indicated by
scriptObject
.
If 0 is specified for
scriptObject
, then the first event handler with the given name found in a
movie script is called.
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...