Preparing search index...

    Class AnimationKeyFrame

    A keyframe with time and respective value. Could be added to Animation Curve.

    Lens Scripting Version 234

    // Example of creating keyframe

    var keyFrame = AnimationCurve.createKeyFrame();

    //Change weighted control points
    keyFrame.time = 0.0;
    keyFrame.value = 0.0;
    keyFrame.inWeightPoint.y = 5;
    keyFrame.inWeightPoint.x = 0.5;

    keyFrame.time = 1.0;
    keyFrame.value = 1.0;
    keyFrame.outWeightPoint.y = -10;
    keyFrame.outWeightPoint.x = 0.7;

    Hierarchy (View Summary)

    Index

    Properties

    inWeightPoint: vec2

    Incoming Control Point.

    Lens Scripting Version 234

    (0.33, 0.33)
    
    leftTangentType: TangentType

    Lens Scripting Version 234

    TangentType.Free
    
    outWeightPoint: vec2

    Outgoing Control Point.

    Lens Scripting Version 234

    (0.33, 0.33)
    
    rightTangentType: TangentType

    Lens Scripting Version 234

    TangentType.Free
    
    time: number

    Timestamp of the keyframe.

    Lens Scripting Version 234

    0
    
    value: number

    Value of the respective timestamp.

    Lens Scripting Version 234

    0
    
    weightedMode: WeightedMode

    Lens Scripting Version 234

    WeightedMode.Easing
    

    Methods

    • 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