set_viewport_camera
Switch a Houdini viewport to look through a specified camera or USD camera prim, optionally targeting a pane, and confirm the active camera.
Instructions
Set the viewport to look through a specific camera.
Args: camera_path: Camera node path, or a USD camera prim path for a Solaris viewport. The result reports the camera the viewport is actually looking through, and fails if it did not take. pane_name: Pane tab name.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"camera_path": "<camera_path>"
},
"name": "set_viewport_camera"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pane_name | No | ||
| camera_path | Yes |