python-lottie
0.6.11+deva0e77a1
A framework to work with lottie files and telegram animated stickers (tgs)
|
Layer effect. More...
Public Member Functions | |
def | __init__ (self, *args, **kwargs) |
def | __getattr__ (self, key) |
def | __str__ (self) |
![]() | |
def | __init__ (self) |
![]() | |
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... | |
def | clone_into (self, other) |
![]() | |
def | __new__ (cls, name, bases, attr) |
Public Attributes | |
effect_index | |
Effect Index. More... | |
effects | |
Effect parameters. More... | |
enabled | |
Whether the effect is enabled. More... | |
![]() | |
name | |
match_name | |
Static Public Attributes | |
type = None | |
Effect type. More... | |
Layer effect.
Lottie name | Type | Description | Attribute |
---|---|---|---|
nm | str | name | |
mn | str | match_name | |
ix | int | Effect Index. | effect_index |
ty | int | Effect type. | type |
ef | list of EffectValue | Effect parameters. [] | effects |
en | bool | Whether the effect is enabled. | enabled |
Definition at line 41 of file effects.py.
def lottie.objects.effects.Effect.__init__ | ( | self, | |
* | args, | ||
** | kwargs | ||
) |
Definition at line 57 of file effects.py.
def lottie.objects.effects.Effect.__getattr__ | ( | self, | |
key | |||
) |
Definition at line 91 of file effects.py.
def lottie.objects.effects.Effect.__str__ | ( | self | ) |
Reimplemented from lottie.objects.base.LottieObject.
Definition at line 97 of file effects.py.
lottie.objects.effects.Effect.effect_index |
lottie.objects.effects.Effect.effects |
Effect parameters.
Definition at line 62 of file effects.py.
lottie.objects.effects.Effect.enabled |
Whether the effect is enabled.
Definition at line 64 of file effects.py.
|
static |
Effect type.
Definition at line 46 of file effects.py.