Create a camera path (guided tour)
set_camera_pathCreate a custom guided camera tour as a scripted walk or fly-through that shared links can play, defining route, room order, framing, and keyframes for a 3D scene.
Instructions
Create a custom guided camera tour, a scripted walk or fly-through that share links can play. Use it when the user wants a specific route, order of rooms or framing; for a good tour without choosing a route, use reset_auto_camera_path. Parameters: keyframes use scene metres with y up. Every key needs a non-zero forward vector f; add look to keep a target point centred, which takes over aiming at that key. Keys without dur are timed from speed; hold pauses at a key, which suits a room reveal. In 'walk' mode the camera keeps eye height and steers around walls, so put keys in open floor space; 'fly' moves freely and suits exteriors. Limits: 2 to 256 keys per tour and up to 24 tours per scene. Each call adds a new tour and keeps the others; the first tour on a scene becomes the default unless another is. Owner only. Requires sign-in (connector sign-in, or VERSE_API_KEY for the local server).
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": {
"scene": "<scene>",
"keys": "<keys>"
},
"name": "set_camera_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | Keyframes in order; the camera moves through them from first to last. | |
| mode | No | 'walk' keeps eye height over the floor and avoids walls; 'fly' goes anywhere. | walk |
| name | No | Tour name shown to viewers, e.g. 'Ground floor walkthrough'. | Walkthrough |
| scene | Yes | Scene id (e.g. palm-villa-0a1b2c3d4e5f), the job id returned by upload_scene, or a Verse share link. | |
| speed | No | Metres per second for keys without `dur`. | |
| make_default | No | Make this the tour that share links and autoplay use. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | Keyframes saved. | |
| scene | Yes | Scene id. | |
| pathId | Yes | Id of the new tour. | |
| default | Yes | Whether links now play this tour by default. | |
| tourLink | Yes | Link that opens the scene playing this tour. |