capture_viewport
Captures the Omniverse viewport and saves a PNG plus bounding-box and segmentation files so you can map visible prims to screen pixels and understand the scene.
Instructions
Capture the viewport and save 3 files for scene understanding:
1. **Viewport image** (PNG) -- what the camera sees
2. **Bounding boxes** (TXT) -- screen-space bounding boxes mapping each visible prim to pixel coordinates
3. **Instance segmentation** (PNG) -- each prim rendered as a unique color, with a legend mapping colors to prim paths
Use files 2 and 3 to understand which prim is where in the viewport image.
Set include_image=True to return the viewport image inline (uses more context but lets you see the scene directly).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Image width in pixels | |
| height | No | Image height in pixels | |
| camera_path | No | The camera prim to capture from; the active one when empty | |
| include_image | No | Also return the image inline, besides the file (uses more context) |