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

Public Member Functions

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

Public Attributes

 Start of the segment, as a percentage. More...
 End of the segment, as a percentage. More...
 start/end offset, as an angle (0, 360) More...
- Public Attributes inherited from lottie.objects.shapes.ShapeElement
 Property index. More...
 Hide element. More...
 Blend mode. More...
- Public Attributes inherited from lottie.objects.helpers.VisualObject

Static Public Attributes

string type = "tm"
 Shape type. More...
- Static Public Attributes inherited from lottie.objects.shapes.ShapeElement
 type = None
 Shape type. More...

Detailed Description

Implement SIF Export
Trims shapes into a segment
Lottie JSON
Lottie name Type Description Attribute
nm str   name
mn str   match_name
hd bool Hide element.   hidden
ty str = 'tm' Shape type.   type
cix int Property index.   property_index
bm BlendMode Blend mode.   blend_mode
s Value Start of the segment, as a percentage.   start
e Value End of the segment, as a percentage.   end
o Value start/end offset, as an angle (0, 360)   offset
m TrimMultipleShapes   multiple

Definition at line 728 of file

Constructor & Destructor Documentation

◆ __init__()

def lottie.objects.shapes.Trim.__init__ (   self)

Reimplemented from lottie.objects.shapes.ShapeElement.

Definition at line 741 of file

Member Data Documentation

◆ end


End of the segment, as a percentage.

Definition at line 746 of file

◆ multiple


Definition at line 750 of file

◆ offset


start/end offset, as an angle (0, 360)

Definition at line 748 of file

◆ start


Start of the segment, as a percentage.

Definition at line 744 of file

◆ type

string lottie.objects.shapes.Trim.type = "tm"

Shape type.

Definition at line 739 of file

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