python-lottie
0.6.11+devc144cca
A framework to work with lottie files and telegram animated stickers (tgs)
|
Base class for mapping Python classes into Lottie JSON objects. More...
Public Member Functions | |
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 | __str__ (self) |
![]() | |
def | __new__ (cls, name, bases, attr) |
Base class for mapping Python classes into Lottie JSON objects.
def lottie.objects.base.LottieObject.__init__ | ( | self | ) |
Reimplemented in lottie.objects.shapes.OffsetPath, lottie.objects.shapes.ZigZag, lottie.objects.shapes.PuckerBloat, lottie.objects.shapes.Twist, lottie.objects.shapes.Merge, lottie.objects.shapes.Trim, lottie.objects.shapes.RepeaterTransform, lottie.objects.shapes.TransformShape, lottie.objects.shapes.Group, lottie.objects.base.CustomObject, lottie.objects.text.Chars, lottie.objects.shapes.Star, lottie.objects.text.CharacterData, lottie.objects.text.FontList, lottie.objects.effects.EffectValueLayer, lottie.objects.layers.ShapeLayer, lottie.objects.text.TextAnimatorData, lottie.objects.layers.TextLayer, lottie.objects.layers.NullLayer, lottie.objects.helpers.Marker, lottie.objects.text.TextData, lottie.objects.shapes.Shape, lottie.objects.bezier.Bezier, lottie.objects.helpers.VisualObject, lottie.objects.text.TextMoreOptions, lottie.objects.shapes.ShapeElement, lottie.objects.layers.Layer, lottie.objects.animation.MotionBlur, lottie.objects.text.TextAnimatorDataProperty, lottie.objects.animation.Metadata, lottie.objects.effects.EffectValue, lottie.objects.helpers.Transform, lottie.objects.text.MaskedPath, and lottie.objects.composition.Composition.
def lottie.objects.base.LottieObject.__str__ | ( | self | ) |
def lottie.objects.base.LottieObject.clone | ( | self | ) |
Returns a copy of the object.
Reimplemented from lottie.objects.base.LottieBase.
Reimplemented in lottie.objects.base.CustomObject, lottie.objects.bezier.Bezier, and lottie.objects.composition.Composition.
def lottie.objects.base.LottieObject.clone_into | ( | self, | |
other | |||
) |
def lottie.objects.base.LottieObject.find | ( | self, | |
search, | |||
propname = "name" |
|||
) |
def lottie.objects.base.LottieObject.find_all | ( | self, | |
type, | |||
predicate = None , |
|||
include_self = True |
|||
) |
def lottie.objects.base.LottieObject.load | ( | cls, | |
lottiedict | |||
) |
Loads from a JSON object.
Reimplemented from lottie.objects.base.LottieBase.
Reimplemented in lottie.objects.shapes.Group, lottie.objects.properties.PositionValue, lottie.objects.base.CustomObject, and lottie.objects.composition.Composition.
def lottie.objects.base.LottieObject.to_dict | ( | self | ) |
Serializes into a JSON object fit for the Lottie format.
Reimplemented from lottie.objects.base.LottieBase.
Reimplemented in lottie.objects.base.CustomObject.