Link camera views via python script

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!

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.

2 Likes

Perfect. Thanks!

Tracing camera linking will be fixed in ParaView 5.7: https://gitlab.kitware.com/paraview/paraview/merge_requests/3261.