Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class test(Scene):
- def construct(self):
- vertices = [1, 2, 3, 4]
- edges = [(1, 2), (2, 3), (3, 4), (1, 3), (1, 4)]
- g = Graph(vertices, edges)
- self.play(Create(g))
- self.wait()
- self.play(g[1].animate.move_to([1, 1, 0]),
- g[2].animate.move_to([-1, 1, 0]),
- g[3].animate.move_to([1, -1, 0]),
- g[4].animate.move_to([-1, -1, 0]))
- self.wait()
- PS C:\Users\Anwender\PycharmProjects\3xPLUS1MAnim> manim -pqm main.py test
- Manim Community v0.16.0.post0
- Traceback (most recent call last):
- ╭──────────────────────────────────────────────────────────────────────────────────────╮
- │ File "C:\Users\Anwender\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_q│
- │bz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\manim\cli\render\comman│
- │ds.py", line 121, in render │
- │ 118 try: │
- │ 119 with tempconfig(config): │
- │ 120 scene = SceneClass() │
- │ ❱ 121 scene.render() │
- │ 122 except Exception: │
- │ 123 error_console.print_exception() │
- │ 124 sys.exit(1) │
- │ File "C:\Users\Anwender\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_q│
- │bz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\manim\scene\scene.py", │
- │line 222, in render │
- │ 219 """ │
- │ 220 self.setup() │
- │ 221 try: │
- │ ❱ 222 self.construct() │
- │ 223 except EndSceneEarlyException: │
- │ 224 pass │
- │ 225 except RerunSceneException as e: │
- │ File "C:\Users\Anwender\PycharmProjects\3xPLUS1MAnim\main.py", line 41, in construct │
- │ 38 def construct(self): │
- │ 39 vertices = [1, 2, 3, 4] │
- │ 40 edges = [(1, 2), (2, 3), (3, 4), (1, 3), (1, 4)] │
- │ ❱ 41 g = Graph(vertices, edges) │
- │ 42 self.play(Create(g)) │
- │ 43 self.wait() │
- │ 44 self.play(g[1].animate.move_to([1, 1, 0]), │
- │ File "C:\Users\Anwender\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_q│
- │bz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\manim\scene\scene.py", │
- │line 140, in __init__ │
- │ 137 ) │
- │ 138 else: │
- │ 139 self.renderer = renderer │
- │ ❱ 140 self.renderer.init_scene(self) │
- │ 141 │
- │ 142 self.mobjects = [] │
- │ 143 # TODO, remove need for foreground mobjects │
- ╰──────────────────────────────────────────────────────────────────────────────────────╯
- AttributeError: 'list' object has no attribute 'init_scene'
Advertisement
Add Comment
Please, Sign In to add comment