Get 3D Screenshot
get_3d_screenshotCapture a 3D map view from QGIS as an image, something 2D screenshots cannot do. Reuses the open scene and camera, with optional pitch, heading, and distance overrides.
Instructions
Capture an OPEN 3D Map View as an inline image. Reuses the open view's scene + camera, rendered via a print-layout 3D map item (the 2D get_canvas_screenshot cannot capture the OpenGL 3D view). Requires a 3D map view to be open in QGIS (View > 3D Map Views > New 3D Map View). view_index selects which view when several are open; dpi controls output resolution. Optional camera overrides (applied to the capture only, leaving the live view unchanged): pitch (0 = straight down/top-down, 90 = horizontal/edge-on; ~45 = balanced oblique), heading (compass degrees), distance (metres).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | ||
| pitch | No | ||
| heading | No | ||
| distance | No | ||
| view_index | No |