Skip to main content

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 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

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, 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 manim-pptx 0.1.5

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

Source distribution (sdist)

Source distribution for manim-pptx 0.1.5
File Size Uploaded
manim-pptx-0.1.5.tar.gz 30.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for manim-pptx 0.1.5
File Interpreter ABI Platform
manim_pptx-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 60.2 kB

Release files / manim-pptx-0.1.5.tar.gz

Download URL manim-pptx-0.1.5.tar.gz
Size 30.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b0fa98186c619b8067a4ebb492a63c888b6098e5d599383d31605b313ff33fe2
BLAKE2b-256 checksum
How to use checksums
0ddb7e7cda44415e37b72fbb88bfdd8fc5a619dfd5e11494cf146dfb1b707507
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.9.0 Windows/10

Release files / manim_pptx-0.1.5-py3-none-any.whl

Download URL manim_pptx-0.1.5-py3-none-any.whl
Size 29.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c8f60b220bddd9b5aba6de38a1b3e08800d3f957b097f3f3bca1ce03fe6914c
BLAKE2b-256 checksum
How to use checksums
37efb32e9afa443c22d9beccebb8fda992887d9f8e7107a60dac7046db411278
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.9.0 Windows/10

Release history Release notifications | RSS feed

0.1.6

2 release files

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

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