python-lottie  0.7.0+dev66cafb9
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.objects.layers.CameraLayer Class Reference

3D Camera More...

Inheritance diagram for lottie.objects.layers.CameraLayer:
[legend]
Collaboration diagram for lottie.objects.layers.CameraLayer:
[legend]

Public Member Functions

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

Public Attributes

 transform
 Layer transform. More...
 
 perspective
 Distance from the Z=0 plane. More...
 
- Public Attributes inherited from lottie.objects.layers.Layer
 threedimensional
 Whether the layer is threedimensional. More...
 
 hidden
 Whether the layer is hidden. More...
 
 index
 Index that can be used for parenting and referenced in expressions. More...
 
 parent_index
 Must be the ind property of another layer. More...
 
 time_stretch
 
 in_point
 Frame when the layer becomes visible. More...
 
 out_point
 Frame when the layer becomes invisible. More...
 
 start_time
 Start Time of layer. More...
 
 is_guide
 When true, the layer should not be rendered. More...
 
- Public Attributes inherited from lottie.objects.helpers.VisualObject
 name
 
 match_name
 

Static Public Attributes

int type = 13
 
- Static Public Attributes inherited from lottie.objects.layers.Layer
 type = None
 Layer type. More...
 

Detailed Description

3D Camera

Lottie JSON
Lottie name Type Description Attribute
nm str   name
mn str   match_name
ddd 0-1 int Whether the layer is threedimensional.   threedimensional
hd bool Whether the layer is hidden.   hidden
guide bool When true, the layer should not be rendered.   is_guide
ty int = 13   type
ind int Index that can be used for parenting and referenced in expressions.   index
parent int Must be the ind property of another layer.   parent_index
sr float   time_stretch
ip float Frame when the layer becomes visible.   in_point
op float Frame when the layer becomes invisible.   out_point
st float Start Time of layer.   start_time
ty int = 13   type
ks Transform Layer transform.   transform
pe Value Distance from the Z=0 plane.   perspective

Definition at line 316 of file layers.py.

Constructor & Destructor Documentation

◆ __init__()

def lottie.objects.layers.CameraLayer.__init__ (   self)

Reimplemented from lottie.objects.layers.Layer.

Definition at line 327 of file layers.py.

Member Data Documentation

◆ perspective

lottie.objects.layers.CameraLayer.perspective

Distance from the Z=0 plane.

Small values yield a higher perspective effect.

Definition at line 334 of file layers.py.

◆ transform

lottie.objects.layers.CameraLayer.transform

Layer transform.

Definition at line 331 of file layers.py.

◆ type

int lottie.objects.layers.CameraLayer.type = 13
static

Definition at line 320 of file layers.py.


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