Preparing search index...

    Class AnimationCurveTrack

    Container for one or more AnimationCurves. Can be sampled to drive attributes (e.g. animation, vfx, code etc.)

    When evaluating multiple values, the values are selected from left to right in order. For example, for a vec3 containing x,y,z it will correspond to track index 0, 1, 2 from left to right.

    Lens Scripting Version 234

    Hierarchy (View Summary)

    Index

    Properties

    name: string

    The name of the Asset in Lens Studio.

    ""
    
    uniqueIdentifier: string

    Lens Scripting Version 176

    Methods

    • Samples the track at the given time to get some value.

      Parameters

      • time: number

      Returns number

      Lens Scripting Version 234

    • Samples the track at the given time to get some value. Returns 0 for non-existent channels.

      Parameters

      • time: number

      Returns quat

      Lens Scripting Version 234

    • Samples the track at the given time to get some value. Returns 0 for non-existent channels.

      Parameters

      • time: number

      Returns vec2

      Lens Scripting Version 234

    • Samples the track at the given time to get some value. Returns 0 for non-existent channels.

      Parameters

      • time: number

      Returns vec3

      Lens Scripting Version 234

    • Samples the track at the given time to get some value. Returns 0 for non-existent channels.

      Parameters

      • time: number

      Returns vec4

      Lens Scripting Version 234

    • Retrieves an AnimationCurve associated with the given key.

      Parameters

      • key: string

      Returns AnimationCurve

      Lens Scripting Version 234

    • Returns an array of strings, which are the names of properties associated with the AnimationCurveTrack.

      Returns string[]

      Lens Scripting Version 234

    • Returns true if the object matches or derives from the passed in type.

      Parameters

      • type: string

      Returns boolean

    • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

      Parameters

      Returns boolean

    • Sets an AnimationCurve to a given key.

      Parameters

      Returns void

      Lens Scripting Version 234