[Paraview] Is there an easy way to do a "Zoom to box" from python

Peter Brady petertbrady at gmail.com
Tue Jul 13 09:11:16 EDT 2010


The ResetCamera function is probably what you're looking for.  To get a
desired zoom level I typically use the parallel projection scale funcion.

view = GetRenderView()
view.ResetCamera()
view.CameraParallelProjection = 1
view.CameraParallelScale = [someValue]

Peter.

On Tue, Jul 13, 2010 at 3:10 AM, Laurent Vanboquestal <
laurent.vanboquestal at gmail.com> wrote:

> Hello,
>
> I would like to know how to perform something like "Zoom to box"
> functionality in python?
>
> Thanks,
>
> Regards,
>
> Laurent
>
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100713/a5549114/attachment.htm>


More information about the ParaView mailing list