python-lottie  0.7.0+dev66cafb9
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.objects.layers.DataLayer Class Reference
Inheritance diagram for lottie.objects.layers.DataLayer:
[legend]
Collaboration diagram for lottie.objects.layers.DataLayer:
[legend]

Public Member Functions

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

Public Attributes

 data_source_id
 ID of the data source in assets. More...
 
- Public Attributes inherited from lottie.objects.layers.Layer
 threedimensional
 Whether the layer is threedimensional. More...
 
 hidden
 Whether the layer is hidden. More...
 
 index
 Index that can be used for parenting and referenced in expressions. More...
 
 parent_index
 Must be the ind property of another layer. More...
 
 time_stretch
 
 in_point
 Frame when the layer becomes visible. More...
 
 out_point
 Frame when the layer becomes invisible. More...
 
 start_time
 Start Time of layer. More...
 
 is_guide
 When true, the layer should not be rendered. More...
 
- Public Attributes inherited from lottie.objects.helpers.VisualObject
 name
 
 match_name
 

Static Public Attributes

int type = 15
 
- 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 Whether the layer is threedimensional.   threedimensional
hd bool Whether the layer is hidden.   hidden
guide bool When true, the layer should not be rendered.   is_guide
ty int = 15   type
ind int Index that can be used for parenting and referenced in expressions.   index
parent int Must be the ind property of another layer.   parent_index
sr float   time_stretch
ip float Frame when the layer becomes visible.   in_point
op float Frame when the layer becomes invisible.   out_point
st float Start Time of layer.   start_time
ty int = 15   type
refId str ID of the data source in assets.   data_source_id

Definition at line 338 of file layers.py.

Constructor & Destructor Documentation

◆ __init__()

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

Reimplemented from lottie.objects.layers.Layer.

Definition at line 345 of file layers.py.

Member Data Documentation

◆ data_source_id

lottie.objects.layers.DataLayer.data_source_id

ID of the data source in assets.

Definition at line 349 of file layers.py.

◆ type

int lottie.objects.layers.DataLayer.type = 15
static

Definition at line 343 of file layers.py.


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