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):
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