python-lottie  0.6.11+devc144cca
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.objects.helpers.Transform Class Reference

Layer transform. More...

Inheritance diagram for lottie.objects.helpers.Transform:
Collaboration diagram for lottie.objects.helpers.Transform:

Public Member Functions

def __init__ (self)
def to_matrix (self, time, auto_orient=False)
- 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

 Transform Anchor Point. More...
 Transform Position. More...
 Transform Scale. More...
 Transform Rotation. More...
 Transform Opacity. More...
 Transform Skew. More...
 Transform Skew Axis. More...

Detailed Description

Layer transform.

Lottie JSON
Lottie name Type Description Attribute
a PositionValue Transform Anchor Point.   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
or MultiDimensional   orientation

Definition at line 7 of file

Constructor & Destructor Documentation

◆ __init__()

def lottie.objects.helpers.Transform.__init__ (   self)

Member Function Documentation

◆ to_matrix()

def lottie.objects.helpers.Transform.to_matrix (   self,
  auto_orient = False 

Definition at line 51 of file

Member Data Documentation

◆ anchor_point


Transform Anchor Point.

Definition at line 24 of file

◆ opacity


Transform Opacity.

Definition at line 32 of file

◆ orientation


Definition at line 49 of file

◆ position


Transform Position.

Definition at line 26 of file

◆ rotation


Transform Rotation.

Definition at line 30 of file

◆ scale


Transform Scale.

Definition at line 28 of file

◆ skew


Transform Skew.

Definition at line 44 of file

◆ skew_axis


Transform Skew Axis.

An angle, if 0 skews on the X axis, if 90 skews on the Y axis

Definition at line 47 of file

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