Scene Render Preview
scene_render_previewRender a single-frame, HUD-free playblast preview from a chosen Maya camera, restoring panel camera and time afterward. Use for clean camera previews in GUI Maya sessions.
Instructions
Single-frame playblast preview from a camera (clean, no HUD).
Boundary: Disambiguated from scene_viewport_snapshot (capture the panel as the artist sees it, HUD and selection highlights included) — scene_render_preview renders a chosen camera with the HUD suppressed.
GUI sessions only - headless sessions get a structured gui_session_required error.
Side-effect disclosures (read_only_hint is honest):
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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "scene_render_preview"
}
}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. |