python-lottie
0.6.11+devc144cca
A framework to work with lottie files and telegram animated stickers (tgs)
|
Public Member Functions | |
def | __init__ (self) |
![]() | |
def | has_masks (self) |
Whether the layer has some masks applied. More... | |
def | add_child (self, layer) |
def | parent (self) |
def | parent (self, layer) |
def | children (self) |
def | __repr__ (self) |
def | __str__ (self) |
def | remove (self) |
Removes this layer from the componsitin. More... | |
![]() | |
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 | __new__ (cls, name, bases, attr) |
Public Attributes | |
data | |
Text Data. More... | |
![]() | |
transform | |
Transform properties. More... | |
auto_orient | |
Auto-Orient along path AE property. More... | |
threedimensional | |
3d layer flag More... | |
hidden | |
Hidden layer. More... | |
index | |
Layer index in AE. More... | |
css_class | |
CSS class used by the SVG renderer. More... | |
layer_xml_id | |
id attribute used by the SVG renderer More... | |
motion_blur | |
Whether motion blur is enabled for the layer. More... | |
in_point | |
In Point of layer. More... | |
out_point | |
Out Point of layer. More... | |
start_time | |
Start Time of layer. More... | |
effects | |
List of Effects. More... | |
stretch | |
Layer Time Stretching. More... | |
parent_index | |
Layer Parent. More... | |
masks | |
List of Masks. More... | |
blend_mode | |
Blend Mode. More... | |
matte_mode | |
Matte mode, the layer will inherit the transparency from the layer above. More... | |
matte_target | |
composition | |
Composition owning the layer, set by add_layer. More... | |
![]() | |
name | |
match_name | |
Static Public Attributes | |
int | type = 5 |
Layer type. More... | |
![]() | |
type = None | |
Layer type. More... | |
Lottie name | Type | Description | Attribute |
---|---|---|---|
nm | str | name | |
mn | str | match_name | |
ddd | 0-1 int | 3d layer flag | threedimensional |
hd | bool | Hidden layer. | hidden |
ty | int = 5 | Layer type. | type |
parent | int | Layer Parent. | parent_index |
sr | float | Layer Time Stretching. | stretch |
ks | Transform | Transform properties. | transform |
ao | 0-1 int | Auto-Orient along path AE property. | auto_orient |
ip | float | In Point of layer. | in_point |
op | float | Out Point of layer. | out_point |
st | float | Start Time of layer. | start_time |
bm | BlendMode | Blend Mode. | blend_mode |
tt | MatteMode | Matte mode, the layer will inherit the transparency from the layer above. | matte_mode |
ind | int | Layer index in AE. | index |
cl | str | CSS class used by the SVG renderer. | css_class |
ln | str | id attribute used by the SVG renderer | layer_xml_id |
mb | bool | Whether motion blur is enabled for the layer. | motion_blur |
hasMask | bool | Whether the layer has some masks applied. | has_masks |
masksProperties | list of Mask | List of Masks. | masks |
ef | list of Effect | List of Effects. | effects |
td | int | matte_target | |
t | TextAnimatorData | Text Data. | data |
def lottie.objects.layers.TextLayer.__init__ | ( | self | ) |
Reimplemented from lottie.objects.layers.Layer.
|
static |