[Paraview] [EXTERNAL] Zoom in/out

Rustem Khabetdinov rustem.khabetdinov at gmail.com
Wed Jun 21 10:11:40 EDT 2017


Thank you! This is what I really needed.

2017-06-19 20:56 GMT+03:00 Scott, W Alan <wascott at sandia.gov>:

> 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/20170621/35a37ff3/attachment.html>


More information about the ParaView mailing list