Preview Render (Viewport, Constant Lines)
preview_renderRender a sketch-style preview of the scene for quick verification. Returns a base64 PNG; supports preset views or a named camera.
Instructions
Quick agent-friendly verification render. Uses the Viewport renderer with the active editor view temporarily switched to Constant Shading (Lines) — sketch-style and fast. Independent of the active RenderData (built freestanding, never inserted) and restores BaseDraw / camera / time / take in finally. Returns a base64 PNG inline so the agent can directly view it. Use view: top|bottom|left|right|front|back for an auto-framed temp camera, or camera to render through a named scene camera. Pass save_path to also write the PNG to disk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| take | No | Optional take name to switch to before rendering. Restored afterward. | |
| view | No | Preset view. 'current' (default) uses the active BaseDraw camera. The other presets place a temp camera looking at the scene bounds from that side; the temp camera is removed in finally. | |
| frame | No | Optional frame number; defaults to the current document time. | |
| width | No | Output width in pixels (default 1024, max 4096). | |
| camera | No | Optional scene camera object name. Mutually exclusive with a non-'current' view. | |
| height | No | Output height in pixels (default 1024, max 4096). | |
| save_path | No | Optional absolute PNG path. When set, the rendered image is also written to disk (parent directory must already exist). The base64 PNG is still returned inline. |