One set of ParaView tutorials is here:  
https://www.paraview.org/Wiki/SNL_ParaView_4_Tutorials.

In the one ParaView and Python, the command is given,  with supporting python.  
https://www.paraview.org/Wiki/ParaView_and_Python

I believe you are looking for the “Dolly” command.  So,

Control the camera
We want to move the camera.
First, get the camera and reset the camera to a known good position.
camera=GetActiveCamera()
camera.SetFocalPoint(0,0,0)
camera.SetPosition(0,0,-10)
camera.SetViewUp(0,1,0)
How to move the camera closer or further away
camera.Dolly(10)
Render()
camera.Dolly(.1)
Render()


From: ParaView [mailto:paraview-boun...@paraview.org] On Behalf Of Rustem 
Khabetdinov
Sent: Monday, June 19, 2017 9:35 AM
To: ParaView <paraview@paraview.org>
Subject: [EXTERNAL] [Paraview] Zoom in/out

Hello,

Is there any python script to zoom in by some percent? I tried to create one 
myself but it fails to zoom in correctly.

Best Regards,
Rustem.
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

Reply via email to