No project description provided
Project description
MANIM-PPTX
A Manim addon which exports the video as a powerpoint
Table of Contents
Installation
pip install manim-pptx
Usage
To export as pptx make your scene class inherit from PPTXScene
You can then call self.endSlide()
to add all animations since the last endSlide()
.
The endSlide
method has also two arguments:
loop
- loops the whole Slide.autonext
- automatically advances to the next slide when the current slide is done animatingnotes
- notes which should be displayed on the created Slide
Example
from manim_pptx import *
from manim import *
class TestScene(PPTXScene):
def construct(self):
t = Tex("Hello World!")
self.play(Write(t, run_time=2))
self.endSlide()
c = Circle(radius=3)
self.play(Create(c))
d = Dot()
d.move_to(c.get_start())
self.play(Write(d))
self.endSlide(autonext=True)
self.play(MoveAlongPath(d, c))
self.endSlide(loop=True, notes="Next Animation displays Bye")
self.play(*[FadeOut(m) for m in self.mobjects])
t2 = Tex("Bye!")
self.play(Write(t2, run_time=1))
self.endSlide()
Contribution
Feel free to contribute and create pull requests.
Credit
Credit to both manim-presentation and manim-pptx where i stole some good ideas and a bit of code
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
manim-pptx-0.1.4.tar.gz
(30.8 kB
view hashes)
Built Distribution
manim_pptx-0.1.4-py3-none-any.whl
(29.2 kB
view hashes)
Close
Hashes for manim_pptx-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f333ecc3108809b62b25d58590755bcb5f696c5ab3f9a67f52ecff1ad127eddb |
|
MD5 | 90bdc752ab09ea3b39e9eb5ae2cd61da |
|
BLAKE2b-256 | 8471031e4ed7e41428c7a6087dcffe6505865a0fd002f0508e333d1228b978d2 |