python-lottie  0.6.8+dev6bb61be
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.objects.shapes.ShapeElement Class Reference

Base class for all elements of ShapeLayer and Group. More...

Inheritance diagram for lottie.objects.shapes.ShapeElement:
[legend]
Collaboration diagram for lottie.objects.shapes.ShapeElement:
[legend]

Public Member Functions

def __init__ (self)
 
def bounding_box (self, time=0)
 Bounding box of the shape element at the given time. More...
 
def __str__ (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...
 
- Public Member Functions inherited from lottie.objects.base.LottieObjectMeta
def __new__ (cls, name, bases, attr)
 

Public Attributes

 name
 After Effect's Name. More...
 
 property_index
 Property index. More...
 
 hidden
 Hide element. More...
 
 bm
 

Static Public Attributes

 type = None
 Shape type. More...
 

Detailed Description

Base class for all elements of ShapeLayer and Group.

Lottie JSON
Lottie name Type Description Attribute
hd bool Hide element.   hidden
nm str After Effect's Name.   name
ty str Shape type.   type
cix int Property index.   property_index
bm int   bm

Definition at line 72 of file shapes.py.

Constructor & Destructor Documentation

◆ __init__()

Member Function Documentation

◆ __str__()

def lottie.objects.shapes.ShapeElement.__str__ (   self)

Reimplemented from lottie.objects.base.LottieObject.

Definition at line 121 of file shapes.py.

◆ bounding_box()

def lottie.objects.shapes.ShapeElement.bounding_box (   self,
  time = 0 
)

Member Data Documentation

◆ bm

lottie.objects.shapes.ShapeElement.bm
Todo:
figure out?

Definition at line 99 of file shapes.py.

◆ hidden

lottie.objects.shapes.ShapeElement.hidden

Hide element.

Definition at line 97 of file shapes.py.

◆ name

lottie.objects.shapes.ShapeElement.name

After Effect's Name.

Used for expressions.

Definition at line 93 of file shapes.py.

◆ property_index

lottie.objects.shapes.ShapeElement.property_index

Property index.

Definition at line 95 of file shapes.py.

◆ type

lottie.objects.shapes.ShapeElement.type = None
static

Shape type.

Definition at line 85 of file shapes.py.


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