python-lottie  0.6.8+dev6bb61be
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 __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
layers list of Layer List of Composition Layers.   layers
id str Precomp ID.   id

Definition at line 187 of file

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 192 of file

Member Function Documentation

◆ set_timing()

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

Definition at line 204 of file

Member Data Documentation

◆ animation


Definition at line 196 of file

◆ id

Precomp ID.

Definition at line 195 of file

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