Skip to content

Export

This section covers everything you can take out of the visualizer: standalone HTML documents, glTF/GLB models, still images, and MP4 video.

Export reads directly from the in-memory scene, so no server is required for the file-producing exports (HTML, glTF, figure snippets):

viz.export_snapshot("scene.html")   # self-contained HTML
viz.export_glb("scene.glb")         # glTF binary
viz.export_figure("figure.html")    # embeddable presentation snippet

Screenshots and video capture are different — they capture the live browser viewport and therefore need the server running (and, for video, ffmpeg on your PATH). Those live in the Video & Image Export page.

Topics

Guide What you will learn
Standalone HTML Self-contained HTML (static and animated), figure snippets for presentations, FigureStyle/AnimStyle
glTF Export Binary .glb export for Blender, <model-viewer>, and other 3D tools
Video & Image Export PNG screenshots and MP4 video capture from the live browser (requires ffmpeg)

Example scripts

Script Topic
html_export.py Self-contained HTML and glTF export
figure.py Presentation figure export with FigureStyle
animated.py Animated HTML export with JS playback engine
screenshot.py Programmatic PNG screenshot