ap_capture_viewport
Capture the shaded 3D viewport as a PNG image and return it inline, letting you visually verify your current work in ArmorPaint.
Instructions
Capture the shaded 3D viewport to a PNG file and return the image so you can look at your own work. REQUIRES the optional viewport patch (docs/UPSTREAM_CHANGES.md) which adds the viewport_save_texture_to_file binding — on a stock build this returns code 'unsupported', and the fallbacks are ap_capture_to_project (in-project only) or ap_export_textures (writes real files, but flat textures rather than the shaded view).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Destination .png file. Absolute path, forward slashes (backslashes are converted for you). | |
| width | No | Capture width in pixels. | |
| height | No | Capture height in pixels. | |
| include_image | No | Return the PNG inline as an image. Set false to get just the path and keep the response small. |