---
title: "layer.newCamera: Camera — Motion kit command — Kition"
description: "Adds a camera layer: `type` oneNode or twoNode (default, with a point of interest), lens `preset` (15–200mm) or `zoom`/`focalLength`/`angleOfView`, depth of field options, `position` and `poi` [x, y, z]. Only 3D layers see it."
canonical: "https://developer.kition.ai/docs/kits/motion/commands/layer.newCamera"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/motion/commands/layer.newCamera](https://developer.kition.ai/docs/kits/motion/commands/layer.newCamera)

# layer.newCamera

**Camera.** Adds a camera layer: `type` oneNode or twoNode (default, with a point of interest), lens `preset` (15–200mm) or `zoom`/`focalLength`/`angleOfView`, depth of field options, `position` and `poi` [x, y, z]. Only 3D layers see it.

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `angleOfView` | `number` | no | degrees |
| `aperture` | `number` | no |  |
| `blurLevel` | `number` | no |  |
| `dof` | `boolean` | no |  |
| `fStop` | `number` | no |  |
| `focalLength` | `any` | no | mm |
| `focusDistance` | `number` | no |  |
| `lockToZoom` | `boolean` | no |  |
| `name` | `string` | no |  |
| `poi` | `any[]` | no | [x,y,z] |
| `position` | `any[]` | no | [x,y,z] |
| `preset` | `"15mm" \| "20mm" \| "24mm" \| "28mm" \| "35mm" \| "50mm" \| "80mm" \| "135mm" \| "200mm"` | no | 15mm\|20mm\|24mm\|28mm\|35mm\|50mm\|80mm\|135mm\|200mm |
| `type` | `"oneNode" \| "twoNode"` | no | default twoNode |
| `zoom` | `number` | no |  |

## Call through motion_run

```text
motion_run {
  "path": "<file>.kmotion",
  "steps": [{ "command": "layer.newCamera" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `angleOfView`, `aperture`, `blurLevel`, `dof`, `fStop`, `focalLength`, `focusDistance`, `lockToZoom`, `name`, `poi`, `position`, `preset`, `type`, `zoom`. motion_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": {
    "angleOfView": {
      "description": "degrees",
      "type": "number"
    },
    "aperture": {
      "type": "number"
    },
    "blurLevel": {
      "type": "number"
    },
    "dof": {
      "type": "boolean"
    },
    "fStop": {
      "type": "number"
    },
    "focalLength": {
      "description": "mm"
    },
    "focusDistance": {
      "type": "number"
    },
    "lockToZoom": {
      "type": "boolean"
    },
    "name": {
      "type": "string"
    },
    "poi": {
      "description": "[x,y,z]",
      "type": "array"
    },
    "position": {
      "description": "[x,y,z]",
      "type": "array"
    },
    "preset": {
      "description": "15mm|20mm|24mm|28mm|35mm|50mm|80mm|135mm|200mm",
      "enum": [
        "15mm",
        "20mm",
        "24mm",
        "28mm",
        "35mm",
        "50mm",
        "80mm",
        "135mm",
        "200mm"
      ],
      "type": "string"
    },
    "type": {
      "description": "default twoNode",
      "enum": [
        "oneNode",
        "twoNode"
      ],
      "type": "string"
    },
    "zoom": {
      "type": "number"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/motion-darwin-arm64@0.1.0 and the kit itself (motion_commands through @kition/cli@0.1.1, built from KitionAI/kition-motion@4719aa7).
