---
title: "camera.handheld: Handheld Camera — Scene kit command — Kition"
description: "Adds a slow handheld float on top of the camera's keys from `start` to `end`, as one undo step: two sine sways of `period` seconds (2.7 and 4.1) up to `amount` metres and `rotation` degrees, fading to exactly nothing inside each of `holds` ([[first, last], ...]) and at its ends over 6 frames. Run it after the camera moves it rides on."
canonical: "https://developer.kition.ai/docs/kits/scene/commands/camera.handheld"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/scene/commands/camera.handheld](https://developer.kition.ai/docs/kits/scene/commands/camera.handheld)

# camera.handheld

**Handheld Camera.** Adds a slow handheld float on top of the camera's keys from `start` to `end`, as one undo step: two sine sways of `period` seconds (2.7 and 4.1) up to `amount` metres and `rotation` degrees, fading to exactly nothing inside each of `holds` ([[first, last], ...]) and at its ends over 6 frames. Run it after the camera moves it rides on.

- Kit: Scene 0.1.0 (.kscene); reference: [Scene kit commands](https://developer.kition.ai/docs/kits/scene.md)
- Changes the document: yes

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `amount` | `number` | no | Metres the camera drifts at most along its own right and up, 0 to 10 (0.01) |
| `camera` | `integer \| string` | no | The camera; the scene's camera when left out |
| `end` | `number` | no | The last frame of the float (the scene's last frame) |
| `holds` | `number[][]` | no | Frame ranges [[first, last], ...] where the camera is dead still; the float fades out over the 6 frames before each and back in over the 6 after |
| `period` | `number \| number[]` | no | How slowly it sways: two sine waves added together ([2.7, 4.1] seconds) |
| `rotation` | `number` | no | Degrees it drifts at most in pitch and yaw (half that in roll), 0 to 45 (0.25) |
| `seed` | `integer` | no | Picks a different, repeatable sway (0) |
| `start` | `number` | no | The first frame of the float (the scene's first frame) |

## Call through scene_run

```text
scene_run {
  "path": "<file>.kscene",
  "steps": [{ "command": "camera.handheld" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `amount`, `camera`, `end`, `holds`, `period`, `rotation`, `seed`, `start`. scene_run answers the step’s result in `completed[i].result`.

## Result

The kit gives no result schema for this command.

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "amount": {
      "description": "Metres the camera drifts at most along its own right and up, 0 to 10 (0.01)",
      "type": "number"
    },
    "camera": {
      "description": "The camera; the scene's camera when left out",
      "oneOf": [
        {
          "description": "the object's id",
          "type": "integer"
        },
        {
          "description": "the object's name",
          "type": "string"
        }
      ],
      "x-khp-name": "name",
      "x-khp-types": [
        "Object"
      ]
    },
    "end": {
      "description": "The last frame of the float (the scene's last frame)",
      "type": "number"
    },
    "holds": {
      "description": "Frame ranges [[first, last], ...] where the camera is dead still; the float fades out over the 6 frames before each and back in over the 6 after",
      "items": {
        "items": {
          "type": "number"
        },
        "type": "array"
      },
      "type": "array"
    },
    "period": {
      "description": "How slowly it sways: two sine waves added together ([2.7, 4.1] seconds)",
      "oneOf": [
        {
          "description": "seconds of the slower sway; the other is 1.52 times it",
          "type": "number"
        },
        {
          "description": "[a, b]: seconds of the two sways added together",
          "items": {
            "type": "number"
          },
          "type": "array"
        }
      ]
    },
    "rotation": {
      "description": "Degrees it drifts at most in pitch and yaw (half that in roll), 0 to 45 (0.25)",
      "type": "number"
    },
    "seed": {
      "description": "Picks a different, repeatable sway (0)",
      "type": "integer"
    },
    "start": {
      "description": "The first frame of the float (the scene's first frame)",
      "type": "number"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/scene-darwin-arm64@0.1.0 and the kit itself (scene_commands through @kition/cli@0.1.1, built from KitionAI/kition-scene@4d06faf).
