Scene Render Preview
scene_render_previewRender a clean, single-frame viewport preview from a Maya camera without HUD, restoring the panel camera and time after capture in GUI sessions.
Instructions
Single-frame playblast preview from a camera (clean, no HUD).
GUI sessions only - headless sessions get a structured gui_session_required error.
Side-effect disclosures (read_only_hint is honest, D-026):
Switching the panel camera via the modelPanel camera flag is instantaneous, visible, and NOT undoable in Maya.
Net-zero side effect: the panel camera is restored on every path - success or failure - so terminal state equals entry.
The current time may visibly jump during capture; it is restored afterwards (playblast timeline quirk).
viewer=False: no playblast window pops up.
On failure the restore is still attempted; a failed restore is logged, never raised over the error result.
Only a killed Maya process can skip the restore.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Frame width in pixels (default 640). Rounded UP to a multiple of 4 server-side (playblast constraint); the actual size may also be clamped by the viewport - trust the returned metadata, not the request. | |
| camera | No | Camera to look through (default: the panel's current camera). | |
| format | No | "jpeg" (default) or "png". png recommended for wireframe/line-art review. | jpeg |
| height | No | Frame height (default 360). Same /4 rule. | |
| quality | No | JPEG quality 1-100. | |
| max_size | No | Longest-side cap for the returned image. | |
| session_key | No | Maya session key. |