python-lottie  0.6.10+dev4166086
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:
[legend]
Collaboration diagram for lottie.objects.assets.Precomp:
[legend]

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

 id
 Precomp ID. More...
 
 animation
 
- Public Attributes inherited from lottie.objects.composition.Composition
 layers
 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 assets.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 192 of file assets.py.

Member Function Documentation

◆ set_timing()

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

Definition at line 204 of file assets.py.

Member Data Documentation

◆ animation

lottie.objects.assets.Precomp.animation

Definition at line 196 of file assets.py.

◆ id

lottie.objects.assets.Precomp.id

Precomp ID.

Definition at line 195 of file assets.py.


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