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
Built Distribution
File details
Details for the file manimlib-pptx-0.1.0.tar.gz
.
File metadata
- Download URL: manimlib-pptx-0.1.0.tar.gz
- Upload date:
- Size: 31.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.0 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e01afd16606fb555cff677234d9d5c551fd0c02a579fbdb5447de780d8fd255 |
|
MD5 | b5fae5205081723fb0966b48d3194508 |
|
BLAKE2b-256 | 46f2feaae80d7845424816a822b0f74026e067f0e8a48f9d154cbd9a90175fa5 |
File details
Details for the file manimlib_pptx-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: manimlib_pptx-0.1.0-py3-none-any.whl
- Upload date:
- Size: 29.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.0 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba83f98e532a760e297e648a7c766454579f2fafa64964d2d9b5336d388b8225 |
|
MD5 | c24676cfc73911f25cc9e0f1213b21e1 |
|
BLAKE2b-256 | 0d9eaced17ea4d24bcacd66b18491c3d0a2e36ee65074b3d69bf07d97b53b6cc |