5 sys.path.insert(0, os.path.join(
6 os.path.dirname(os.path.dirname(os.path.abspath(__file__))),
10 from lottie
import objects
12 from lottie
import Point, Color, Point3D, Size
14 an = objects.Animation(120)
16 layer = objects.ShapeLayer()
26 a = i/20 * math.pi * 2
28 g = layer.add_shape(objects.Group())
29 b = g.add_shape(objects.Ellipse())
30 b.size.value =
Size(20, 20)
31 xz = axis * math.sin(a)*128
32 pos =
Point3D(256+xz[0], 256+math.cos(a)*128, xz[1])
33 b.position.value = pos
35 g.add_shape(objects.Fill(Color(0, 1, 0)))
38 dr = anutils.DepthRotationDisplacer(
Point3D(256, 256, 0), 0, 120, 10,
Point3D(0, 2, -1))
40 dr.animate_point(b.position)
42 script.script_main(an)