Re: [Paraview] Python paraview.simple: Zoom To Data?

2015-01-11 Thread Burlen Loring
Hi Liam, On 1/9/2015 10:52 AM, Liam wrote: Just one more question. How do you define: far = config.camFac your question is a follow up to the script about automatically positioning the camera when viewing 2d axis aligned image data from thread

Re: [Paraview] Python paraview.simple: Zoom To Data?

2015-01-09 Thread Liam
Hey guys, Just one more question. How do you define: far = config.camFac I cannot find in the code neither config nor camFac variable, so anybody could explain me how to compute far variable? This code has helped me so much. Yhanks in advance, Liam

[Paraview] Python paraview.simple: Zoom To Data?

2012-03-15 Thread Nico Schlömer
Hi, the ParaView GUI has this nifty little button action Zoom To Data which displays the current object such that it somehow fits its window. Is there a similar thing for the Python paraview.simple module? I'm trying to get a hang on it with certain view options such as view =

Re: [Paraview] Python paraview.simple: Zoom To Data?

2012-03-15 Thread Nico Schlömer
I see. Well, ResetCamera() seems to deliver okay results only after Show() has been called -- OpenDataFile() doesn't suffice. Another misconception of mine was that CameraPosition and CameraFocalPoint could be set to anything. My data files contain flat surfaces in the x-y-plane, and ResetCamera()

Re: [Paraview] Python paraview.simple: Zoom To Data?

2012-03-15 Thread Burlen Loring
ResetCamera() still leaves a wide border around the object. Is it possible to rid of those, too? Hey Nico, I've had to fine tune the rendering in python scripts in the past and a strategy that has worked passably for me where my data lies in an axis aligned plane is to get the bounds of the