# Combining animation and python

**URL:** <https://boards.straightdope.com/t/combining-animation-and-python/968087>\
**Category:** Factual Questions\
**Created:** [July 17, 2022, 2:05pm UTC](https://boards.straightdope.com/t/combining-animation-and-python/968087 "2022-07-17T14:05:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saint\_Cad](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/saint_cad/32/18907_2.png) [@Saint\_Cad](https://boards.straightdope.com/u/Saint_Cad)\
**Post date:** [July 17, 2022, 2:05pm UTC](https://boards.straightdope.com/t/combining-animation-and-python/968087/1 "2022-07-17T14:05:43Z")

</div>

I want to make a few videos that combing animation and the math library in python. Think of something like a video  
showing the equation 3x - 2y = 12 (animation)  
plotting the intercepts (python)  
drawing the line (python)  
showing the steps to get y = (3/2)x - 6 (animation)  
showing the rise and run for the slope and the y-intercept in the graph (python)

I have used synfig for animation before so my questions are

1. how to best integrate the two into one video
2. is there a programming language that would work better for basic animation in terms of moving things around, changing font colors, fade in & fade out, etc.?
3. more as I think of them

---

<div class="post-metadata">

**Author:** ![Stranger\_On\_A\_Train](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@Stranger\_On\_A\_Train](https://boards.straightdope.com/u/Stranger_On_A_Train)\
**Post date:** [July 17, 2022, 2:15pm UTC](https://boards.straightdope.com/t/combining-animation-and-python/968087/2 "2022-07-17T14:15:42Z")

</div>

[You can run Python scripts in Synfig.](https://synfig.readthedocs.io/en/latest/plugins.html)

Stranger

---

<div class="post-metadata">

**Author:** ![Francis\_Vaughan](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/francis_vaughan/32/3093_2.png) [@Francis\_Vaughan](https://boards.straightdope.com/u/Francis_Vaughan)\
**Post date:** [July 17, 2022, 2:19pm UTC](https://boards.straightdope.com/t/combining-animation-and-python/968087/3 "2022-07-17T14:19:54Z")

</div>

The ManimCommunity library is tailor made for demonstrating mathematical ideas. As used in the YouTube channel 3Blue1Brown. (Well a fork of.)

> **[GitHub - ManimCommunity/manim: A community-maintained Python framework for...](https://github.com/ManimCommunity/manim/)**
>
> A community-maintained Python framework for creating mathematical animations. - GitHub - ManimCommunity/manim: A community-maintained Python framework for creating mathematical animations.

---

<div class="post-metadata">

**Author:** ![Saint\_Cad](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/saint_cad/32/18907_2.png) [@Saint\_Cad](https://boards.straightdope.com/u/Saint_Cad)\
**Post date:** [July 17, 2022, 2:52pm UTC](https://boards.straightdope.com/t/combining-animation-and-python/968087/4 "2022-07-17T14:52:15Z")

</div>

That was my inspiration.  
Before I posted here, I tried to understand the library, cried a lot, gave up.  
Maybe I should try again or look at Stranger’s link and both great ideas.

---

<div class="post-metadata">

**Author:** ![Francis\_Vaughan](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/francis_vaughan/32/3093_2.png) [@Francis\_Vaughan](https://boards.straightdope.com/u/Francis_Vaughan)\
**Post date:** [July 17, 2022, 2:56pm UTC](https://boards.straightdope.com/t/combining-animation-and-python/968087/5 "2022-07-17T14:56:56Z")

</div>

> [@Saint\_Cad](#):
>
> Maybe I should try again or look at Stranger’s link and both great ideas.

Have another go. Just chip away at it and do simple things. It always gets better. 😃
