python-lottie  0.6.11+devc144cca
A framework to work with lottie files and telegram animated stickers (tgs) Class Reference

Keyframe for Positional values. More...

Inheritance diagram for
Collaboration diagram for

Additional Inherited Members

- Public Member Functions inherited from
def __init__ (self, time=0, start=None, end=None, easing_function=None, in_tan=None, out_tan=None)
def interpolated_value (self, ratio, next_start=None)
def interpolated_tangent_angle (self, ratio, next_start=None)
def __repr__ (self)
- Public Member Functions inherited from
def __init__ (self, time=0, easing_function=None)
def bezier (self)
def lerp_factor (self, ratio)
def __str__ (self)
- Public Member Functions inherited from lottie.objects.base.LottieObject
def __init__ (self)
def to_dict (self)
 Serializes into a JSON object fit for the Lottie format. More...
def load (cls, lottiedict)
 Loads from a JSON object. More...
def find (self, search, propname="name")
 Recursively searches for child objects with a matching property. More...
def find_all (self, type, predicate=None, include_self=True)
 Find all child objects that match a predicate. More...
def clone (self)
 Returns a copy of the object. More...
def clone_into (self, other)
- Public Member Functions inherited from lottie.objects.base.LottieObjectMeta
def __new__ (cls, name, bases, attr)
- Public Attributes inherited from
 Start value of keyframe segment. More...
 End value of keyframe segment. More...
 In Spatial Tangent. More...
 Out Spatial Tangent. More...
- Public Attributes inherited from
 Start time of keyframe segment. More...
 Bezier curve easing in value. More...
 Bezier curve easing out value. More...
 Jump to the end value. More...

Detailed Description

Keyframe for Positional values.

Lottie JSON
Lottie name Type Description Attribute
t float Start time of keyframe segment.   time
i KeyframeBezierHandle Bezier curve easing in value.   in_value
o KeyframeBezierHandle Bezier curve easing out value.   out_value
h 0-1 int Jump to the end value.   jump
s NVector Start value of keyframe segment.   start
e NVector End value of keyframe segment.   end
ti NVector In Spatial Tangent.   in_tan
to NVector Out Spatial Tangent.   out_tan

Definition at line 417 of file

The documentation for this class was generated from the following file: