first post on stackoverflow, apologies if this is not written correctly I am pretty new to Python and Very new to Manim. I am a big fan of 3b1b, and was using one of his files from gitlab as a baseline for my text animation (For Reference: https://github.com/3b1b/videos/blob/3dc2bc24006a6d032eb3e7502914492d6f24bcdc/_2016/eola/chapter0.py) I am just playing around and trying to get a text animation to run but I am getting an error and I cannot seem to find a solution to. I don't know if I am missing a Library or if I am just simply not understanding what the function is asking me to fix, below is my current code. (I am just trying to make my friends laugh so ignore the quote"
from manimlib.animation.creation import Write
from manimlib.animation.fading import FadeIn
from manimlib.constants import *
from manimlib.scene.scene import Scene
from manimlib.utils.rate_functions import linear
from manim import RED, GREEN, BLUE, PURPLE
from manim import *
from manimlib import *
from manimlib.mobject.svg.tex_mobject import *
from manimpango import *
from manimlib.mobject.svg.tex_mobject import *
class OpeningQuote(Scene):
def construct(self):
words= (
"""
``Every PooPoo time is PP time
but not every PP time is Poo Poo time :(``
""",
)
words.set_width(FRAME_WIDTH-1)
words.to_edge(UP)
for mob in words.submobjects[48:49+13]:
mob.set_color(PURPLE)
author = ("--Taylor Woodard\\'e")
author.set_color(GREEN)
author.next_to(words, DOWN)
self.play(FadeIn(words))
self.wait(2)
self.play(Write(author, run_time = 4))
self.wait()
Again, pretty new to python so I apologize if this my codes look chaotic
I tried adding new/different libraries from manim, I tried filling in the 'set_width' argument with something that was predefined (basically anything that would be autofilled) and I just don't know what I am missing
the error I am getting is: "AttributeError: 'tuple' object has no attribute 'set_width'"
Again, apologies if this post is rough. I will do better next time.
Anything will help. Please feel free to tear apart my code as well. I am willing to learn
Thanks!