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

Group transform. More...

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

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...
 
- Public Member Functions inherited from lottie.objects.base.LottieObjectMeta
def __new__ (cls, name, bases, attr)
 
- Public Member Functions inherited from lottie.objects.helpers.Transform
def to_matrix (self, time, auto_orient=False)
 

Public Attributes

 anchor_point
 
- Public Attributes inherited from lottie.objects.shapes.ShapeElement
 name
 After Effect's Name. More...
 
 property_index
 Property index. More...
 
 hidden
 Hide element. More...
 
 bm
 
- Public Attributes inherited from lottie.objects.helpers.Transform
 anchor_point
 Transform Anchor Point. More...
 
 position
 Transform Position. More...
 
 scale
 Transform Scale. More...
 
 rotation
 Transform Rotation. More...
 
 opacity
 Transform Opacity. More...
 
 skew
 Transform Skew. More...
 
 skew_axis
 Transform Skew Axis. More...
 

Static Public Attributes

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

Detailed Description

Group transform.

Lottie JSON
Lottie name Type Description Attribute
hd bool Hide element.   hidden
nm str After Effect's Name.   name
ty str = 'tr' Shape type.   type
cix int Property index.   property_index
bm int   bm
a MultiDimensional   anchor_point
p PositionValue Transform Position.   position
s MultiDimensional Transform Scale.   scale
r Value Transform Rotation.   rotation
o Value Transform Opacity.   opacity
sk Value Transform Skew.   skew
sa Value Transform Skew Axis.   skew_axis

Definition at line 681 of file shapes.py.

Constructor & Destructor Documentation

◆ __init__()

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

Reimplemented from lottie.objects.helpers.Transform.

Definition at line 688 of file shapes.py.

Member Data Documentation

◆ anchor_point

lottie.objects.shapes.TransformShape.anchor_point

Definition at line 691 of file shapes.py.

◆ type

string lottie.objects.shapes.TransformShape.type = "tr"
static

Shape type.

Definition at line 686 of file shapes.py.


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