---
title: "view.set3DViewCamera: Set 3D View Camera — Motion kit command — Kition"
description: "Sets the eye [x,y,z], poi [x,y,z] and zoom of a non-camera 3D view (default, orthographic or custom1-3). For the Active Camera view, edit the camera layer's transform instead."
canonical: "https://developer.kition.ai/docs/kits/motion/commands/view.set3DViewCamera"
---

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

# view.set3DViewCamera

**Set 3D View Camera.** Sets the eye [x,y,z], poi [x,y,z] and zoom of a non-camera 3D view (default, orthographic or custom1-3). For the Active Camera view, edit the camera layer's transform instead.

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `comp` | `integer \| string` | no | read by the command beside its listed parameters |
| `eye` | `any[]` | no | [x,y,z] |
| `poi` | `any[]` | no | [x,y,z] |
| `view` | `string` | no |  |
| `zoom` | `number` | no |  |

## Call through motion_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `comp`, `eye`, `poi`, `view`, `zoom`. motion_run answers the step’s result in `completed[i].result`.

## Result



```json
{
  "description": "The command's answer"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "comp": {
      "description": "read by the command beside its listed parameters",
      "oneOf": [
        {
          "description": "comp's item id as motion_inspect lists it",
          "type": "integer"
        },
        {
          "description": "the item id as receipts print it (\"1\"), or the comp's name",
          "type": "string"
        }
      ],
      "x-khp-name": "name",
      "x-khp-types": [
        "Item"
      ]
    },
    "eye": {
      "description": "[x,y,z]",
      "type": "array"
    },
    "poi": {
      "description": "[x,y,z]",
      "type": "array"
    },
    "view": {
      "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).
