[Paraview] Zoom to data is not correctly captured in a python trace.

Andy Bauer andy.bauer at kitware.com
Tue Aug 19 21:22:44 EDT 2014


I see in coprocessing.py it does:
                    if view.IsA("vtkSMRenderViewProxy") == True:
                        view.ResetCamera()
                    elif view.IsA("vtkSMContextViewProxy") == True:
                        view.ResetDisplay()

The first is for standard 2D and 3D views and the second one is for plots.
I'm not sure if this is any more helpful than what Utkarsh said.



On Tue, Aug 19, 2014 at 3:56 PM, Utkarsh Ayachit <
utkarsh.ayachit at kitware.com> wrote:

> Alan,
>
> With git/master, it translates to something like this:
>
> renderView1.ResetCamera(-10.0, 10.0, -10.0, 10.0, -10.0, 10.0)
>
> Where the values are indeed the current data bounds. But I think we
> can add API to "ZoomTOData" in Python using a data source rather that
> current bounds. Feel free to add a bug/feature request.
>
> Utkarsh
>
> On Tue, Aug 19, 2014 at 3:42 PM, Scott, W Alan <wascott at sandia.gov> wrote:
> > From a user:
> >
> > I'm trying to create a Python script which will loop through a set of
> Exodus
> > block IDs and will output an image for each block. I started the trace
> and
> > tried to use the "Zoom to Data" button, but this didn't translate well
> into
> > the python script - instead I got a discrete camera view, which doesn't
> lend
> > well to a general script. Is there a command I can pass to zoom to
> whatever
> > data I'd like?
> >
> > Thanks,
> >
> > Alan
> >
> >
> >
> >
> > _______________________________________________
> > 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://public.kitware.com/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://public.kitware.com/mailman/listinfo/paraview
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20140819/de29ab48/attachment.html>


More information about the ParaView mailing list