Skip to main content
Send scad:screenshot:request to capture the visible CAD viewport:
All options are optional. The default maximum output size is 1920 by 1080 pixels. scale controls the requested pixel ratio, but the result is reduced as needed to remain within maxWidth and maxHeight. CAD responds with a PNG data URL and its pixel dimensions:
Only one capture can run at a time. Failures return scad:screenshot:error: