![MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference Download Page 949](http://html1.mh-extra.com/html/macromedia/director-mx-2004-director-scripting/director-mx-2004-director-scripting_reference_3321720949.webp)
region
949
See also
textureModeList
,
blendFunctionList
,
blendConstantList
reflectivity
Usage
member(
whichCastmember
).reflectivity
Description
3D shader property; allows you to get or set the shininess of the referenced member’s default
shader. The value is a floating point value representing the percentage of light to be reflected off
the surface of a model using the default shader, from 0.0 to 100.00. The default value is 0.0.
Example
This statement sets the shininess of the default shader in the cast member named Scene to 50%:
member("Scene").reflectivity = 50
region
Usage
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
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
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...