Link camera views via python script

(Ruggiero Guida) #1

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!

(Cory Quammen (Kitware)) #2

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.

1 Like
(Ruggiero Guida) #3

Perfect. Thanks!

(Cory Quammen (Kitware)) #4

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