Skip to content

NameError: name 'prepare_animation' is not defined #4413

@yasenstar

Description

@yasenstar

Description of bug / unexpected behavior

When try to practice prepare_animation(FadeIn(s)) function, got NameError

Expected behavior

Should display: FadeIn(Square)

How to reproduce the issue

My test code is here https://github.com/yasenstar/python/blob/master/Manim/4_Reference_Manual/4.1_Animation/4.1.1_animation/4.1.1.0_override_animation/PrepareAnimationExample.py

error message is also in the code

from manim import Square, FadeIn
s = Square()
print(s)
prepare_animation(FadeIn(s))

Thanks, Xiaoqi

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions