Lens Scripting API

    Enumeration PostInfinity

    Used by AnimationMixerLayer for setting animation looping behavior.

    // Set an AnimationMixerLayer to oscillate when looping
    //@input Component.AnimationMixer mixer

    var layer = script.mixer.getLayers()[0];
    layer.postInfinity = AnimationClip.PostInfinity.Oscillate;
    Index

    Enumeration Members

    Enumeration Members

    Cycle: number

    The animation will restart from the beginning each time it loops.

    Oscillate: number

    The animation will switch between normal and reverse playback each time it loops.

    MMNEPVFCICPMFPCPTTAAATR