|
def | __init__ (self) |
|
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) |
|
def | __new__ (cls, name, bases, attr) |
|
- 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 = 15 | | 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 = 15 | | type |
refId | str | ID of the data source in assets. | data_source_id |
Definition at line 338 of file layers.py.
◆ __init__()
def lottie.objects.layers.DataLayer.__init__ |
( |
|
self | ) |
|
◆ data_source_id
lottie.objects.layers.DataLayer.data_source_id |
ID of the data source in assets.
Definition at line 349 of file layers.py.
◆ type
int lottie.objects.layers.DataLayer.type = 15 |
|
static |
The documentation for this class was generated from the following file: