r/manim•
Aidan_TDev

Molecules in Manim?

I am trying to make molecules in manim but using chemfig in a MathTex() block yields this, the bonds don't show up right and using chanim doens't work either becuase that crashes when i try it.
So is there a way to do this?

molecule = MathTex(r'\chemfig{CH3-CH2-OH}', tex_template=tpl)
self.play(Write(molecule, run_time=3))
self.wait(2)

Bonds don't show up right.

Posted Jan 31, 2026, 1:24 PM UTC

10
Loading comments…