Skip to main content

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 animating
  • notes - notes which should be displayed on the created Slide
  • shownextnotes - 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

Metadata

Release files for manimlib-pptx 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for manimlib-pptx 0.1.0
File Size Uploaded
manimlib-pptx-0.1.0.tar.gz 31.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for manimlib-pptx 0.1.0
File Interpreter ABI Platform
manimlib_pptx-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 60.9 kB

Release files / manimlib-pptx-0.1.0.tar.gz

Download URL manimlib-pptx-0.1.0.tar.gz
Size 31.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3e01afd16606fb555cff677234d9d5c551fd0c02a579fbdb5447de780d8fd255
BLAKE2b-256 checksum
How to use checksums
46f2feaae80d7845424816a822b0f74026e067f0e8a48f9d154cbd9a90175fa5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.0 Windows/10

Release files / manimlib_pptx-0.1.0-py3-none-any.whl

Download URL manimlib_pptx-0.1.0-py3-none-any.whl
Size 29.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ba83f98e532a760e297e648a7c766454579f2fafa64964d2d9b5336d388b8225
BLAKE2b-256 checksum
How to use checksums
0d9eaced17ea4d24bcacd66b18491c3d0a2e36ee65074b3d69bf07d97b53b6cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.0 Windows/10

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page