Scene kit command

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)
Changes the document
yes

Parameters

Parameters of camera.handheld
NameTypeRequiredDescription
amountnumbernoMetres the camera drifts at most along its own right and up, 0 to 10 (0.01)
camerainteger | stringnoThe camera; the scene's camera when left out
endnumbernoThe last frame of the float (the scene's last frame)
holdsnumber[][]noFrame 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
periodnumber | number[]noHow slowly it sways: two sine waves added together ([2.7, 4.1] seconds)
rotationnumbernoDegrees it drifts at most in pitch and yaw (half that in roll), 0 to 45 (0.25)
seedintegernoPicks a different, repeatable sway (0)
startnumbernoThe 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/[email protected] and the kit itself (scene_commands through @kition/[email protected], built from KitionAI/kition-scene@4d06faf). As data: commands.jsonl.