Search code examples
manim

What is a VGroup in manim?


Could you explain to me what is a VGroup and how is it useful, please? I tried looking for it, but obviously to no avail, not much documentation there is. Thanks in advance.


Solution

  • It is basically a group of VMobjects. So say you have some equation consisting of multiple seperate Texmobjects. Then you want to move the entire thing. It would make sense to VGroup all the parts, so let entire_eq = VGroup (eq_part1, eq_part2, eq_part3) and then you would just have to move this entire_eq. This also applies for changing the colors, scaling and so fort.

    This works for any kinds of VMobject.