[Paraview] zoom to data

2008-11-01 Thread Tomislav Maric
Hello, I'm browsing through servermanager.CreateRenderView().GetActiveCamera() methods, and I have a question: is it possible somehow to set the active camera properties so that all of the data is within vtk view window, but without loading a paraview state file? When I work in Paraview GUI fronte

Re: [Paraview] zoom to data

2008-11-01 Thread Tomislav Maric
Hi Peter, thank you so much for the help, it got me on the way, but I still have some questions. Here's what i've tried: I didn't set wireframe, points , etc, and ResetCamera and StillRender give me a black screen. I took your advice and did this: view = servermanager.CreateRenderView() c

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

2014-08-19 Thread Scott, W Alan
>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 v

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

2014-08-19 Thread Utkarsh Ayachit
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

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

2014-08-19 Thread Andy Bauer
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 an