python-lottie  0.6.8+dev6bb61be
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:
[legend]
Collaboration diagram for lottie.objects.layers.TextLayer:
[legend]

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...
 
- Public Member Functions inherited from lottie.objects.base.LottieObjectMeta
def __new__ (cls, name, bases, attr)
 

Public Attributes

 data
 Text Data. More...
 
- Public Attributes inherited from lottie.objects.layers.Layer
 transform
 Transform properties. More...
 
 auto_orient
 Auto-Orient along path AE property. More...
 
 threedimensional
 3d layer flag More...
 
 hidden
 Hidden layer. More...
 
 index
 Layer index in AE. More...
 
 in_point
 In Point of layer. More...
 
 out_point
 Out Point of layer. More...
 
 start_time
 Start Time of layer. More...
 
 name
 After Effects Layer Name. More...
 
 effects
 List of Effects. More...
 
 stretch
 Layer Time Stretching. More...
 
 parent_index
 Layer Parent. More...
 
 masks
 List of Masks. More...
 
 blend_mode
 Blend Mode. More...
 
 matte_mode
 Matte mode, the layer will inherit the transparency from the layer above. More...
 
 matte_target
 
 composition
 Composition owning the layer, set by add_layer. More...
 

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
ddd 0-1 int 3d layer flag   threedimensional
hd bool Hidden layer.   hidden
ty int = 5 Layer type.   type
nm str After Effects Layer Name.   name
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
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 197 of file layers.py.

Constructor & Destructor Documentation

◆ __init__()

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

Reimplemented from lottie.objects.layers.Layer.

Definition at line 204 of file layers.py.

Member Data Documentation

◆ data

lottie.objects.layers.TextLayer.data

Text Data.

Definition at line 207 of file layers.py.

◆ type

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

Layer type.

Definition at line 202 of file layers.py.


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