Adds a keyframe to the curve. The curve takes a copy of the keyframe's data; to edit it afterwards, retrieve the live handle via AnimationCurve#getKeyFrame.
StaticcreateStaticcreateCreates curve based on CSS easing values. The optional time argument sets the
end time of the curve; the curve spans from time 0 to time (defaults to 1.0).
Optionaltime: numberStaticcreateGet the AnimationKeyFrame at the passed in index. The returned object
is a live handle into the curve — editing its time, value, or
tangent properties updates the curve directly.
StaticgetReturns the name of this object's type.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other. Useful for checking if two references point to the same thing.
A curve that contains a set of keyframes and can evaluate values at specific timestamps.
Since
Lens Scripting Version 234
Example