focus_viewport
Frame the editor camera on specified entities, using a preset or custom view, to prepare for viewport capture and inspection.
Instructions
Frame the editor camera on the given entities, optionally from a preset view (top/front/etc.) or a custom yaw/pitch. Useful before capture_viewport. Returns { focused: }. When NOT to use: to move an in-scene camera entity (use modify_entities on its transform).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Entity resource_ids to frame | |
| yaw | No | Custom horizontal angle (degrees); ignored if view is set | |
| view | No | Preset camera orientation | |
| pitch | No | Custom vertical angle (degrees); ignored if view is set |