# Link camera views via python script

**URL:** https://discourse.paraview.org/t/link-camera-views-via-python-script/1841
**Category:** Development
**Created:** [May 13, 2019, 1:54pm UTC](https://discourse.paraview.org/t/link-camera-views-via-python-script/1841 "2019-05-13T13:54:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Rojj](https://discourse.paraview.org/user_avatar/discourse.paraview.org/rojj/32/1409_2.png) [@Rojj](https://discourse.paraview.org/u/Rojj)
#### Post date: [May 13, 2019, 1:54pm UTC](https://discourse.paraview.org/t/link-camera-views-via-python-script/1841/1 "2019-05-13T13:54:15Z")

</div>

I am generating 4 different RenderViews via Python.

Is there a way to programmatically link them together (Right click on view -\> Link camera). I have tried to trace while doing it manually, but there is no sign of this action in the traced python code.

Thanks!

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [May 13, 2019, 2:08pm UTC](https://discourse.paraview.org/t/link-camera-views-via-python-script/1841/2 "2019-05-13T14:08:37Z")

</div>

Assuming you have references to the different views called `view1` and `view2`, you can use `AddCameraLink(view1, view2, name)` to link them where `name` is a string serving as a name for the link.

---

<div class="post-metadata">

### Author: ![Rojj](https://discourse.paraview.org/user_avatar/discourse.paraview.org/rojj/32/1409_2.png) [@Rojj](https://discourse.paraview.org/u/Rojj)
#### Post date: [May 13, 2019, 2:32pm UTC](https://discourse.paraview.org/t/link-camera-views-via-python-script/1841/3 "2019-05-13T14:32:03Z")

</div>

Perfect. Thanks!

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [May 13, 2019, 2:55pm UTC](https://discourse.paraview.org/t/link-camera-views-via-python-script/1841/4 "2019-05-13T14:55:50Z")

</div>

Tracing camera linking will be fixed in ParaView 5.7: [https://gitlab.kitware.com/paraview/paraview/merge\_requests/3261](https://gitlab.kitware.com/paraview/paraview/merge_requests/3261).
