ap_capture_to_project
Capture the current 3D viewport into the active ArmorPaint project as a packed texture asset. The snapshot is stored only inside the .arm file, ready when the project is saved.
Instructions
Capture the 3D viewport into the project as a packed texture asset. Works on a stock ArmorPaint, but the pixels land INSIDE the project (persisted only when the .arm is saved) — nothing outside ArmorPaint can read them, so you cannot look at the result. To actually see the viewport, use ap_capture_viewport (needs the optional viewport patch). NOTE: the bridge handler runs inline in one frame and cannot wait for a re-render, so the capture is of the frame ALREADY drawn and may include the UI overlay; ArmorPaint's own two-frame settle is not reproducible from a plugin.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Capture width in pixels. | |
| height | No | Capture height in pixels. |