python-lottie  0.6.8+dev6bb61be
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.objects.properties.ShapeProperty Class Reference

An animatable property that holds a Bezier. More...

Inheritance diagram for lottie.objects.properties.ShapeProperty:
[legend]
Collaboration diagram for lottie.objects.properties.ShapeProperty:
[legend]

Public Member Functions

def __init__ (self, bezier=None)
 
- Public Member Functions inherited from lottie.objects.properties.AnimatableMixin
def clear_animation (self, value)
 Sets a fixed value, removing animated keyframes. More...
 
def add_keyframe (self, time, value, interp=easing.Linear(), *args, **kwargs)
 
def get_value (self, time=0)
 Returns the value of the property at the given frame/time. More...
 
def to_dict (self)
 
def __repr__ (self)
 
def __str__ (self)
 
def merge_keyframes (cls, items, conversion)
 
def load (cls, lottiedict)
 
- Public Member Functions inherited from lottie.objects.base.LottieObject
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 __str__ (self)
 
- Public Member Functions inherited from lottie.objects.base.LottieObjectMeta
def __new__ (cls, name, bases, attr)
 

Static Public Attributes

 keyframe_type = ShapePropKeyframe
 
- Static Public Attributes inherited from lottie.objects.properties.AnimatableMixin
 keyframe_type = Keyframe
 

Additional Inherited Members

- Public Attributes inherited from lottie.objects.properties.AnimatableMixin
 value
 Non-animated value. More...
 
 property_index
 Property index. More...
 
 animated
 Whether it's animated. More...
 
 keyframes
 Keyframe list. More...
 

Detailed Description

An animatable property that holds a Bezier.

Lottie JSON
Lottie name Type Description Attribute
k Bezier Non-animated value.   value
ix float Property index.   property_index
a 0-1 int Whether it's animated.   animated
k list of ShapePropKeyframe Keyframe list.   keyframes

Definition at line 672 of file properties.py.

Constructor & Destructor Documentation

◆ __init__()

def lottie.objects.properties.ShapeProperty.__init__ (   self,
  bezier = None 
)

Reimplemented from lottie.objects.properties.AnimatableMixin.

Definition at line 685 of file properties.py.

Member Data Documentation

◆ keyframe_type

lottie.objects.properties.ShapeProperty.keyframe_type = ShapePropKeyframe
static

Definition at line 676 of file properties.py.


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