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.vanboques...@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 > >
_______________________________________________ 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