@rendley/sdk - v1.15.5
    Preparing search index...

    Class Effect

    Represents an effect instance resolved from the library and applied to a clip.

    Index

    Constructors

    • Creates an effect wrapper for a library effect definition.

      Parameters

      • effectId: string

        Library effect ID to instantiate.

      • Optionalproperties: Record<string, any>

        Optional initial property values applied during initialization.

      Returns Effect

    Methods

    • Releases textures and destroys the underlying effect implementation.

      Returns void

      Nothing.

    • Returns the owning clip ID, if one has been assigned.

      Returns undefined | string

      The owning clip ID, or undefined if the effect is not attached to a clip.

    • Returns the library effect ID used to create this instance.

      Returns string

      The effect definition ID.

    • Returns the unique instance ID of this effect.

      Returns string

      The effect instance ID.

    • Indicates whether the underlying library effect is built into the SDK.

      Returns boolean

      true if the effect definition is built in; otherwise false.

    • Returns the underlying PIXI filter exposed by the effect implementation.

      Returns null | Pixi.Filter

      The PIXI filter, or null if the effect has not been initialized.

    • Returns the live property map used by this effect instance.

      Returns Map<string, any>

      The effect property map.

    • Returns the current value of an effect property.

      Parameters

      • propertyName: string

        Name of the effect property to read.

      Returns any

      A cloned copy of the property value, or undefined if the property is unknown.

    • Returns the provider identifier of the library effect definition.

      Returns string

      The provider ID.

    • Resolves the effect definition from the library and creates the underlying effect implementation.

      Returns void

      Nothing.

    • Serializes this effect instance.

      Returns {
          clipId?: string;
          effectId: string;
          id: string;
          properties: [string, any][];
          provider: string;
      }

      The serialized effect payload.

    • Associates the effect with a clip.

      Parameters

      • clipId: string

        Clip ID that owns the effect.

      Returns void

      Nothing.

    • Overrides the effect instance ID.

      Parameters

      • id: string

        Effect instance ID to assign.

      Returns void

      Nothing.

    • Updates an effect property value.

      Parameters

      • propertyName: string

        Name of the effect property to update.

      • value: any

        New property value.

      Returns void

      Nothing.

    • Updates the effect for the specified clip-local time.

      Parameters

      • clipTime: number

        Clip-local playback time, in seconds.

      Returns void

      Nothing.

    • Creates an effect instance from serialized data.

      Parameters

      • data: object

        Serialized effect payload.

      Returns Effect

      The deserialized effect instance.