Skip to content

Is there a way that I can use rotating while fading? #3263

Closed Answered by uwezi
Stanford997 asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, let's first get your rotation to work at all, currently this part alone would cause a couple of error messages:

class rotfade(Scene):
    def construct(self):
        text = Text("rotate while fading", height=1)
        self.add(text)
        self.play(
            Rotating(
                text,
                angle=PI / 2,
                run_time=3,
                about_edge=np.array([0, 1, 0]),
                axis=LEFT,
                ),
        )  
rotfade.mp4

You cannot have two independent animations on the same object in a single self.play() because of the way the rendering engine in Manin works, but you can do it like this, using basic object modifier together with

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Stanford997
Comment options

@uwezi
Comment options

Answer selected by Stanford997
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants