python-lottie  0.6.11+deva0e77a1
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.objects.assets.Precomp Class Reference
Inheritance diagram for lottie.objects.assets.Precomp:
Collaboration diagram for lottie.objects.assets.Precomp:

Public Member Functions

def __init__ (self, id="", animation=None)
def set_timing (self, outpoint, inpoint=0, override=True)
- 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 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_into (self, other)
def __str__ (self)
- Public Member Functions inherited from lottie.objects.base.LottieObjectMeta
def __new__ (cls, name, bases, attr)
- Public Member Functions inherited from lottie.objects.composition.Composition
def __init__ (self)
def layer (self, index)
def add_layer (self, Layer layer)
 Appends a layer to the composition. More...
def load (cls, lottiedict)
 Loads from a JSON object. More...
def insert_layer (self, index, Layer layer)
 Inserts a layer to the composition. More...
def prepare_layer (self, Layer layer)
def clone (self)
 Returns a copy of the object. More...
def remove_layer (self, Layer layer)
 Removes a layer (and all of its children) from this composition. More...

Public Attributes

 Precomp ID. More...
- Public Attributes inherited from lottie.objects.composition.Composition
 List of Composition Layers. More...

Detailed Description

Lottie JSON
Lottie name Type Description Attribute
id str Precomp ID.   id
layers list of Layer List of Composition Layers.   layers
nm str   name
fr float   frame_rate

Definition at line 143 of file

Constructor & Destructor Documentation

◆ __init__()

def lottie.objects.assets.Precomp.__init__ (   self,
  id = "",
  animation = None 

Definition at line 149 of file

Member Function Documentation

◆ set_timing()

def lottie.objects.assets.Precomp.set_timing (   self,
  inpoint = 0,
  override = True 

Definition at line 163 of file

Member Data Documentation

◆ animation


Definition at line 153 of file

◆ frame_rate


Definition at line 157 of file

◆ id

Precomp ID.

Definition at line 152 of file

◆ name

Definition at line 156 of file

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