No project description provided
Project description
MANIMLIB-PPTX
A Manimlib (the one from 3b1b) addon which exports the video as a powerpoint
See manim-pptx for manim community edition
Table of Contents
Installation
pip install manimlib-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 Slideshownextnotes
- show the notes of the next slide in the notes of the current slide
Note: You need to use the
-w, --write_file
flag otherwise it will throw an error. Pull-requests are welcome.
Example
from manim_pptx import *
from manimlib 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, shownextnotes=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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
manimlib-pptx-0.1.0.tar.gz
(31.3 kB
view hashes)
Built Distribution
Close
Hashes for manimlib_pptx-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba83f98e532a760e297e648a7c766454579f2fafa64964d2d9b5336d388b8225 |
|
MD5 | c24676cfc73911f25cc9e0f1213b21e1 |
|
BLAKE2b-256 | 0d9eaced17ea4d24bcacd66b18491c3d0a2e36ee65074b3d69bf07d97b53b6cc |