neu_glance.movie

Animations: a Timeline of tweens over a viewer state, rendered frame by frame.

animate decides what each frame is: plain dicts, stdlib only, no neuroglancer. rendering gets a real viewer to draw each frame (the serve extra), headless or in an attended browser, and prints the ffmpeg command that encodes them:

from neu_glance.movie import Timeline, ffmpeg_command, record

tl = Timeline(state, fps=30).orbit(360, seconds=12)
record(tl, "frames/")
print(ffmpeg_command("frames/", fps=30))

Submodules