Rotate around an axis and zoom-in using ParaView Python script


I want to apply two operations using ParaView Python script: 1-rotate around the Y-axis with a specific degree (30,60,etc.) 2- zoom into the data.
When I use the trace python script tool, it does not trace the camera movements, is there an easy way to do these 2 operations using python?

You can use GetActiveView().CameraParallelScale to zoom

I use scipy.spatial.transform.Rotation to rotate the camera in scripts. Not exactly easy but not too difficult either. Alternatively you could add a Transform filter to your pipeline and use it’s parameters to rotate your dataset.