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

**URL:** https://discourse.paraview.org/t/rotate-around-an-axis-and-zoom-in-using-paraview-python-script/5755
**Category:** ParaView Support
**Tags:** python
**Created:** [November 9, 2020, 8:06pm UTC](https://discourse.paraview.org/t/rotate-around-an-axis-and-zoom-in-using-paraview-python-script/5755 "2020-11-09T20:06:05Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![R.B](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/a9adbd/32.png) [@R.B](https://discourse.paraview.org/u/R.B)
#### Post date: [November 9, 2020, 8:06pm UTC](https://discourse.paraview.org/t/rotate-around-an-axis-and-zoom-in-using-paraview-python-script/5755/1 "2020-11-09T20:06:06Z")

</div>

Hello,

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?

---

<div class="post-metadata">

### Author: ![theodorebaltis](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/e480ec/32.png) [@theodorebaltis](https://discourse.paraview.org/u/theodorebaltis)
#### Post date: [November 10, 2020, 4:29pm UTC](https://discourse.paraview.org/t/rotate-around-an-axis-and-zoom-in-using-paraview-python-script/5755/2 "2020-11-10T16:29:07Z")

</div>

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.
