Effect instance script interface

The IEffectInstance script interface represents the parameters for a single effect on a IWorldInstance, ILayer or ILayout. It is typically accessed through the effects property.


See the Scripting effect parameters example for a demonstration of using the setParameter() method to modify effect parameters.

Effect APIs

The zero-based index of this effect, which is its index in the effects array.
A read-only string of the effect name.
A boolean indicating whether this effect is enabled or not. Inactive effects act the same as the effect being deleted, but the effect can later be reactivated if it is needed again. Note making effects inactive if they are not needed improves performance.
setParameter(index, value)
Set or get an effect parameter by the zero-based parameter index. Most parameters use a number as the value. Note however that color parameters are represented by an array with three elements, i.e. [r, g, b]. The R, G and B values are normalized to floats in the [0, 1] range.
Construct 3 Manual 2022-12-01

On this page