Video2D usage for animation authors
Select Video2D in the managed project and author scenes through the Python manifest. The host uses the same Video2D renderer for preview and export:
from manifest import Video2d, Position, Rectangle, FadeIn
def build(seq, frame):
card = Rectangle(frame, Position(80, 60), Position(320, 180), fill=(40, 80, 160))
seq.show(FadeIn(card, time=.5))
def make_video():
return Video2d(build)
Import package extensions before constructing entities. Use ordinary entity
properties and sequence helpers (Move, Fade, AbsoluteTransition, and
bundles) for animation; no renderer-specific calls are needed in a scene.
Video2D validates the compiled DOM, samples properties at video frames, and
renders deterministic RGBA output.
To add custom drawing behavior, see Creating Render Plugins.