python-lottie  0.6.10+dev4166086
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.objects.effects.Effect Class Reference

Layer effect. More...

Inheritance diagram for lottie.objects.effects.Effect:
Collaboration diagram for lottie.objects.effects.Effect:

Public Member Functions

def __init__ (self, *args, **kwargs)
def __getattr__ (self, key)
def __str__ (self)
- 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...
- Public Member Functions inherited from lottie.objects.base.LottieObjectMeta
def __new__ (cls, name, bases, attr)

Public Attributes

 Effect Index. More...
 After Effect's Name. More...
 Effect parameters. More...

Static Public Attributes

 type = None
 Effect type. More...

Detailed Description

Layer effect.

Lottie JSON
Lottie name Type Description Attribute
ix int Effect Index.   effect_index
nm str After Effect's Name.   name
ty int Effect type.   type
ef list of EffectValue Effect parameters. []   effects

Definition at line 49 of file

Constructor & Destructor Documentation

◆ __init__()

def lottie.objects.effects.Effect.__init__ (   self,
**  kwargs 

Definition at line 66 of file

Member Function Documentation

◆ __getattr__()

def lottie.objects.effects.Effect.__getattr__ (   self,

Definition at line 104 of file

◆ __str__()

def lottie.objects.effects.Effect.__str__ (   self)

Reimplemented from lottie.objects.base.LottieObject.

Definition at line 110 of file

Member Data Documentation

◆ effect_index


Effect Index.

Used for expressions.

Definition at line 68 of file

◆ effects


Effect parameters.

Definition at line 72 of file

◆ name

After Effect's Name.

Used for expressions.

Definition at line 70 of file

◆ type

lottie.objects.effects.Effect.type = None

Effect type.

Definition at line 54 of file

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