Get 3D Screenshot
get_3d_screenshotCapture an open 3D map view as an image, with optional camera overrides for pitch, heading, and distance.
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 |