From e9d35a68445262dc6b3ee713aa1607b784750f22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Couble?= Date: Mon, 24 Feb 2025 11:01:12 +0100 Subject: [PATCH] [doc] Update documentation to choose view --- Examples/Python/UsePythonAnimations.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Examples/Python/UsePythonAnimations.md b/Examples/Python/UsePythonAnimations.md index 8e0109535..fdfbc39ba 100644 --- a/Examples/Python/UsePythonAnimations.md +++ b/Examples/Python/UsePythonAnimations.md @@ -351,6 +351,17 @@ else: tach.params['cad_model_name'] = "carModel" ``` +#### How to play camera animation for a specific view + +When using LidarView with multiple views, the camera animation will play on +the currently active view by default. You can change this behavior by setting +the `tach.params["animation_view"]` parameter to specify the desired view. + +```python +# e.g typically view_name="LidarGridView1" view_type="LidarGridView" +tach.params["animation_view"] = smp.FindViewOrCreate(view_name, view_type) +``` + ## How to add `PythonAnimationCue` script to lidarview animations ### Using a python script -- GitLab