662
Chapter 14: Properties
blendLevel
Usage
sprite(
whichSpriteNumber
).blendLevel
the blendLevel of sprite
whichSpriteNumber
Description
Sprite property; allows the current blending value of a sprite to be set or accessed. The possible
range of values is from 0 to 255. This differs from the Sprite Inspector, which shows values in the
range 0 to 100. The results are the same, the scales simply differ.
This property is the equivalent of the
blend
sprite property.
Example
sprite(3).blendlevel = 99
See also
blend (Sprite)
blendRange
Usage
member(
whichCastmember
).modelResource(
whichModelResource
)\
.blendRange.start
modelResourceObjectReference
.blendRange.end
member(
whichCastmember
).modelResource(
whichModelResource
)\
.blendRange.start
modelResourceObjectReference
.blendRange.end
Description
3D property; when used with a model resource whose type is
#particle
, allows you to get or set
the start and end of the model resource’s blend range.
The opacity of particles in the system is interpolated linearly between
blendRange.start
and
blendRange.end
over the lifetime of each particle.
This property’s value must be greater than or equal to 0.0 and less than or equal to 100.0. The
default value for this property is 100.0.
Example
This statement sets the
blendRange
properties of model resource ThermoSystem, which is of the
type #particle.
The first line sets the start value to 100, and the second line sets the end value to 0. The effect of
this statement is that the particles of ThermoSystem are fully opaque when they first appear, and
then gradually fade to transparent during their lifetime.
member("Heater").modelResource("ThermoSystem").blendRange.\
start = 100.0
member("Heater").modelResource("ThermoSystem").blendRange.\
end = 0.0
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...