python-lottie  0.6.11+devc144cca
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.objects.layers.TextLayer Class Reference
Inheritance diagram for lottie.objects.layers.TextLayer:
Collaboration diagram for lottie.objects.layers.TextLayer:

Public Member Functions

def __init__ (self)
- Public Member Functions inherited from lottie.objects.layers.Layer
def has_masks (self)
 Whether the layer has some masks applied. More...
def add_child (self, layer)
def parent (self)
def parent (self, layer)
def children (self)
def __repr__ (self)
def __str__ (self)
def remove (self)
 Removes this layer from the componsitin. More...
- 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...
def clone_into (self, other)
- Public Member Functions inherited from lottie.objects.base.LottieObjectMeta
def __new__ (cls, name, bases, attr)

Public Attributes

 Text Data. More...
- Public Attributes inherited from lottie.objects.layers.Layer
 Transform properties. More...
 Auto-Orient along path AE property. More...
 3d layer flag More...
 Hidden layer. More...
 Layer index in AE. More...
 CSS class used by the SVG renderer. More...
 id attribute used by the SVG renderer More...
 Whether motion blur is enabled for the layer. More...
 In Point of layer. More...
 Out Point of layer. More...
 Start Time of layer. More...
 List of Effects. More...
 Layer Time Stretching. More...
 Layer Parent. More...
 List of Masks. More...
 Blend Mode. More...
 Matte mode, the layer will inherit the transparency from the layer above. More...
 Composition owning the layer, set by add_layer. More...
- Public Attributes inherited from lottie.objects.helpers.VisualObject

Static Public Attributes

int type = 5
 Layer type. More...
- Static Public Attributes inherited from lottie.objects.layers.Layer
 type = None
 Layer type. More...

Detailed Description

Lottie JSON
Lottie name Type Description Attribute
nm str   name
mn str   match_name
ddd 0-1 int 3d layer flag   threedimensional
hd bool Hidden layer.   hidden
ty int = 5 Layer type.   type
parent int Layer Parent.   parent_index
sr float Layer Time Stretching.   stretch
ks Transform Transform properties.   transform
ao 0-1 int Auto-Orient along path AE property.   auto_orient
ip float In Point of layer.   in_point
op float Out Point of layer.   out_point
st float Start Time of layer.   start_time
bm BlendMode Blend Mode.   blend_mode
tt MatteMode Matte mode, the layer will inherit the transparency from the layer above.   matte_mode
ind int Layer index in AE.   index
cl str CSS class used by the SVG renderer.   css_class
ln str id attribute used by the SVG renderer   layer_xml_id
mb bool Whether motion blur is enabled for the layer.   motion_blur
hasMask bool Whether the layer has some masks applied.   has_masks
masksProperties list of Mask List of Masks.   masks
ef list of Effect List of Effects.   effects
td int   matte_target
t TextAnimatorData Text Data.   data

Definition at line 179 of file

Constructor & Destructor Documentation

◆ __init__()

def lottie.objects.layers.TextLayer.__init__ (   self)

Reimplemented from lottie.objects.layers.Layer.

Definition at line 186 of file

Member Data Documentation

◆ data

Text Data.

Definition at line 189 of file

◆ type

int lottie.objects.layers.TextLayer.type = 5

Layer type.

Definition at line 184 of file

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