python-lottie  0.6.8+dev6bb61be
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:
[legend]
Collaboration diagram for lottie.objects.helpers.Transform:
[legend]

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

Public Attributes

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

Detailed Description

Layer transform.

Lottie JSON
Lottie name Type Description Attribute
a MultiDimensional 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

Definition at line 7 of file helpers.py.

Constructor & Destructor Documentation

◆ __init__()

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

Member Function Documentation

◆ to_matrix()

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

Definition at line 51 of file helpers.py.

Member Data Documentation

◆ anchor_point

lottie.objects.helpers.Transform.anchor_point

Transform Anchor Point.

Definition at line 26 of file helpers.py.

◆ opacity

lottie.objects.helpers.Transform.opacity

Transform Opacity.

Definition at line 34 of file helpers.py.

◆ position

lottie.objects.helpers.Transform.position

Transform Position.

Definition at line 28 of file helpers.py.

◆ rotation

lottie.objects.helpers.Transform.rotation

Transform Rotation.

Definition at line 32 of file helpers.py.

◆ scale

lottie.objects.helpers.Transform.scale

Transform Scale.

Definition at line 30 of file helpers.py.

◆ skew

lottie.objects.helpers.Transform.skew

Transform Skew.

Definition at line 46 of file helpers.py.

◆ skew_axis

lottie.objects.helpers.Transform.skew_axis

Transform Skew Axis.

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

Definition at line 49 of file helpers.py.


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