python-lottie  0.6.10+dev2509936
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.objects.layers.NullLayer Class Reference

Layer with no data, useful to group layers together. More...

Inheritance diagram for lottie.objects.layers.NullLayer:
Collaboration diagram for lottie.objects.layers.NullLayer:

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)

Static Public Attributes

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

Additional Inherited Members

- 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...
 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

Detailed Description

Layer with no data, useful to group layers together.

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 = 3 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
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

Definition at line 183 of file

Constructor & Destructor Documentation

◆ __init__()

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

Reimplemented from lottie.objects.layers.Layer.

Definition at line 190 of file

Member Data Documentation

◆ type

int lottie.objects.layers.NullLayer.type = 3

Layer type.

Definition at line 188 of file

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