[Paraview] [EXTERNAL] Zoom in/out
Scott, W Alan
wascott at sandia.gov
Mon Jun 19 13:56:59 EDT 2017
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-bounces at paraview.org] On Behalf Of Rustem Khabetdinov
Sent: Monday, June 19, 2017 9:35 AM
To: ParaView <paraview at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170619/247f525a/attachment.html>
More information about the ParaView
mailing list