---
title: "view.set3DView: Switch 3D View — Motion kit command — Kition"
description: "Switches which view a comp's viewer looks through: activeCamera, default, front, left, top, back, right, bottom or custom1-3. Viewer state only; does not move camera layers."
canonical: "https://developer.kition.ai/docs/kits/motion/commands/view.set3DView"
---

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

# view.set3DView

**Switch 3D View.** Switches which view a comp's viewer looks through: activeCamera, default, front, left, top, back, right, bottom or custom1-3. Viewer state only; does not move camera layers.

- 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 |  |
| `view` | `"activeCamera" \| "default" \| "front" \| "left" \| "top" \| "back" \| "right" \| "bottom" \| "custom1" \| "custom2" \| "custom3"` | no |  |

## Call through motion_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `comp`, `view`. 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": {
      "oneOf": [
        {
          "description": "item id",
          "type": "integer"
        },
        {
          "description": "comp name",
          "type": "string"
        }
      ],
      "x-khp-name": "name",
      "x-khp-types": [
        "Item"
      ]
    },
    "view": {
      "enum": [
        "activeCamera",
        "default",
        "front",
        "left",
        "top",
        "back",
        "right",
        "bottom",
        "custom1",
        "custom2",
        "custom3"
      ],
      "type": "string"
    }
  },
  "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).
