ShapeElement that can contain other shapes.
More...
|
def | __init__ (self) |
|
def | transform (self) |
|
def | bounding_box (self, time=0) |
| Bounding box of the shape element at the given time. More...
|
|
def | add_shape (self, shape) |
|
def | insert_shape (self, index, shape) |
|
def | load (cls, lottiedict) |
| Loads from a JSON object. More...
|
|
def | __str__ (self) |
|
def | to_dict (self) |
| Serializes into a JSON object fit for the Lottie format. 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) |
|
ShapeElement that can contain other shapes.
- Note
- Shapes inside the same group will create "holes" in other shapes
- Lottie JSON
-
Definition at line 433 of file shapes.py.
◆ __init__()
def lottie.objects.shapes.Group.__init__ |
( |
|
self | ) |
|
◆ add_shape()
def lottie.objects.shapes.Group.add_shape |
( |
|
self, |
|
|
|
shape |
|
) |
| |
◆ bounding_box()
def lottie.objects.shapes.Group.bounding_box |
( |
|
self, |
|
|
|
time = 0 |
|
) |
| |
◆ insert_shape()
def lottie.objects.shapes.Group.insert_shape |
( |
|
self, |
|
|
|
index, |
|
|
|
shape |
|
) |
| |
◆ load()
def lottie.objects.shapes.Group.load |
( |
|
cls, |
|
|
|
lottiedict |
|
) |
| |
◆ transform()
def lottie.objects.shapes.Group.transform |
( |
|
self | ) |
|
◆ number_of_properties
lottie.objects.shapes.Group.number_of_properties |
Group number of properties.
Used for expressions.
Definition at line 448 of file shapes.py.
◆ shapes
lottie.objects.shapes.Group.shapes |
◆ type
string lottie.objects.shapes.Group.type = "gr" |
|
static |
The documentation for this class was generated from the following file: