What is a Scene?
A Scene is the fundamental building block of ManimVTK. It’s a container for your animation that manages:- Mobjects (visual objects)
- Animations (movements and transformations)
- Camera (viewpoint and perspective)
- Rendering (video output and VTK export)
Basic Scene Structure
- Import:
from manimvtk import * - Class definition: Inherit from
Scene - construct() method: Where you build your animation
The construct() Method
Theconstruct() method is where all your animation logic lives:
The
construct() method is called automatically when you render the sceneScene Types
ManimVTK provides several scene types for different use cases:- Scene
- ThreeDScene
- MovingCameraScene
- ZoomedScene
Basic 2D scene - Default scene typeUse for:
- 2D animations
- Graphs and plots
- Educational diagrams
Adding Objects to a Scene
Using add()
Instantly add objects without animation:Using play()
Add objects with animation:Adding Multiple Objects
Scene Methods
Animation Control
play()
play()
Play one or more animations:
wait()
wait()
Pause the animation:
add()
add()
Add objects without animation:
remove()
remove()
Remove objects from scene:
Camera Control (ThreeDScene)
set_camera_orientation()
set_camera_orientation()
Set the initial camera position:
begin_ambient_camera_rotation()
begin_ambient_camera_rotation()
Start continuous camera rotation:
move_camera()
move_camera()
Animate camera movement:
Scene Lifecycle
Understanding the order of operations:construct()method executes- Animations are recorded
- Frames are generated
- Video is encoded
- VTK export (if requested)
Configuration
In Scene Class
Via Command Line
Via Config File
Createmanim.cfg:
Common Patterns
Simple Animation
Sequential Animations
Simultaneous Animations
Build Up and Transform
Best Practices
Keep construct() organized
Keep construct() organized
Break complex scenes into helper methods:
Use descriptive names
Use descriptive names
Add wait() for clarity
Add wait() for clarity
Give viewers time to process:
Reuse objects
Reuse objects
Debugging Scenes
Print Debug Info
Preview Frames
Use Lower Quality for Testing
Next Steps
Mobjects
Learn about creating and manipulating objects
Animations
Master animation techniques
Cameras
Control camera movement and perspective
Examples
Browse example scenes

