# Animate Only One Camera Python

**URL:** https://discourse.paraview.org/t/animate-only-one-camera-python/16213
**Category:** ParaView Support
**Created:** [February 21, 2025, 7:54pm UTC](https://discourse.paraview.org/t/animate-only-one-camera-python/16213 "2025-02-21T19:54:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![figbar](https://discourse.paraview.org/user_avatar/discourse.paraview.org/figbar/32/15779_2.png) [@figbar](https://discourse.paraview.org/u/figbar)
#### Post date: [February 21, 2025, 7:54pm UTC](https://discourse.paraview.org/t/animate-only-one-camera-python/16213/1 "2025-02-21T19:54:57Z")

</div>

I have a python animation which works fine (applied in the time manager via adding a python animation track and pasting in the script). Now I want a side by side view (two windows, where one is animated, and one is a non-animated free cam that I can look around with using my mouse). I have added two views of the same scene by splitting the first view, such that I now have both (called LidarGridView1, and LidarGridView 2), however if I use the python animation, it applies to both views (or I can get it so that it only applied to the view I selected).

I tried adding two python tracks, one with an empty animation, but that didn’t work, and in general am confused how to apply the animation to a specific view.

Any help would be appreciated

Here is my current animation (in lidarview, but I think the time manager is the same):

```auto
import numpy as np
import paraview.simple as smp
from lidarviewcore.matrix_rotation import rotation_matrix_from_euler
import lidarviewcore.camera_path as cp
import lidarviewcore.temporal_animation_cue_helpers as tach

# Third person view, relative to current SLAM pose
position = [0, 0, 0]
up_vector = [0, 1, 1]
focal_point = [0, 1, 0]
cp.R_cam_to_lidar = rotation_matrix_from_euler([0, 0, 0], 'xyz', degrees=True)

# Use last pose of the selected trajectory
tach.params['trajectory_time_array'] = None

# Misc
tach.params['verbose'] = False

def start_cue(self):
    tach.start_cue_generic_setup(self)

    # If selected object is a SLAM filter, use SLAM trajectory on output port 1
    src = smp.GetActiveSource().GetClientSideObject()
    self.trajectory = src.GetOutput(1 if src.GetClassName() == 'vtkSlam' else 0)

    c = cp.ThirdPersonView(0, np.inf, position=position, focal_point=focal_point, up_vector=up_vector)
    self.cameras = [c]

from lidarviewcore.temporal_animation_cue_helpers import tick, end_cue

```
