python-lottie  0.6.10+dev42a5126
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 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

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

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 149 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 163 of file assets.py.

Member Data Documentation

◆ animation

lottie.objects.assets.Precomp.animation

Definition at line 153 of file assets.py.

◆ frame_rate

lottie.objects.assets.Precomp.frame_rate

Definition at line 157 of file assets.py.

◆ id

lottie.objects.assets.Precomp.id

Precomp ID.

Definition at line 152 of file assets.py.

◆ name

lottie.objects.assets.Precomp.name

Definition at line 156 of file assets.py.


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