Capture Viewport
viewport.captureCapture the current viewport frame as a JPEG or PNG image. Read-only snapshot without modifying the scene.
Instructions
Capture a single viewport frame as inline image content using Maya playblast. Read-only: does not modify scene data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame | No | Optional frame to capture (defaults to current time) | |
| panel | No | Optional preferred modelPanel name | |
| width | No | Capture width in pixels (64-4096) | |
| format | No | Image format: 'jpeg' (default) or 'png' | jpeg |
| height | No | Capture height in pixels (64-4096) | |
| quality | No | JPEG quality 1-100 (used when format='jpeg') | |
| offscreen | No | Use offscreen capture when available (default False) | |
| show_ornaments | No | Show viewport ornaments/gizmos (default True) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame | Yes | ||
| panel | Yes | ||
| width | Yes | ||
| format | Yes | ||
| height | Yes | ||
| mime_type | Yes | ||
| size_bytes | Yes |