# Camera Animation

For most animations, you might need a natural Camera movement to show your setup from a different point of view. To animate a Camera, the [Keyframe Animations](https://help.depence.com/depence-show-and-animation/depence-show-sequencer/depence-keyframe-animations) are used together with an additional Camera object.

## **Add Camera Object**

The 3D-Viewport is using the standard inbuild Editor Camera by default, which is not represented in the SceneGraph. To get an accessible and selectable Camera Object you would need to create one. Therefore go the **Main Menu** > **Create > Scene** > **Camera**. Creating a new Camera object will place it in the same position as your current Editor camera. Just move back to your Editor Camera to see the object:

![](https://content.gitbook.com/content/SJPsyh5CBOise9BtVNGO/blobs/MoMRFOKM3Nef5Mai7AHM/48201805.png)

{% hint style="info" %}
Note: Cameras are always looking at the Z+ direction.
{% endhint %}

### **Add Camera to Timeline**

As same as with other Objects, the Camera Object can be animated by dragging the Camera using the Drag-Icon, into the Timeline track view. The initial keyframes will be created automatically on the current Cameras position.

#### **Change Viewport Camera**

As mentioned earlier, the Viewport uses the Editor-Camera by default. You can change the active Camera on the **Viewport-Menu** > **Camera** > **Active Camera.**

![](https://content.gitbook.com/content/SJPsyh5CBOise9BtVNGO/blobs/A4CbmKwVDwM1KXKacLXk/47972477.png)

Now you can move and rotate the Camera-Object with your mouse in the same way as your editor camera.

#### **Lock-Z Rotation**

In some circumstances you might notice that while interpolating between two camera positions, the Camera's Z rotation might be rotated accidentally. This happens, because rotations can't be interpolated linearly without affecting all rotation axes. To prevent this, it is possible to lock the Z rotation for the Camera.

1. Select the **Rotation Track** of the Camera.
2. In the Settings Window > Check "**LockZRotation**".

This option will always keep the Camera aligned to the horizon.

## Camera Selector

The ![](https://content.gitbook.com/content/SJPsyh5CBOise9BtVNGO/blobs/fssmdzPxcIa0l18tXJTc/image.png) permits to switch between all cameras present in the SceneGraph.

![Add "Camera Selector" in the SceneGraph](https://content.gitbook.com/content/SJPsyh5CBOise9BtVNGO/blobs/1mXEZ4yLiU16292uHxVn/image.png)

Add it into the SceneGraph, and drag and drop it into the Timeline. Then you can keyframe the **Active Camera** setting of the Camera Selector.

![Camera Selector - Active Camera](https://content.gitbook.com/content/SJPsyh5CBOise9BtVNGO/blobs/9QJKk5hyjKWhAhaXrnbi/image.png)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.depence.com/depence-show-and-animation/depence-show-sequencer/depence-camera-animation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
