Search code examples
pythonmanim

Can't make Angle object in Manim, is the class deprecated or am I missing something?


Pretty new to Manim and trying to make an Angle object like it says on the documentation: https://docs.manim.community/en/stable/reference/manim.mobject.geometry.line.Angle.html?highlight=angle#manim.mobject.geometry.line.Angle.from_three_points

But getting the following error:

NameError: name 'Angle' is not defined

Here's the line of code I used:

self.play(ShowCreation(Angle(nueva_linea2, nuevo_radio)))

(Being 'nueva_linea2' and 'nuevo_radio' two Line objects)

As you may already suspect, the following won't work either:

angulo = Angle(nueva_linea2, nuevo_radio)
self.play(ShowCreation(angulo))

Here's the Manim version according to the terminal:

ManimGL v1.6.1

Solution

  • The community maintained version ("Manim") is different from Grant's version ("ManimGL" / "manimlib"). In ManimGL, there is no Angle mobject.

    See here for more information: https://docs.manim.community/en/stable/faq/installation.html#why-are-there-different-versions-of-manim