3D Lingo Dictionary > A-B > blendRange |  |

blendRange

Syntax

    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