[Paraview] ParaView and Python general questions

2010-09-14 Thread Milos Ilak
Hi, I am new to ParaView and not entirely new to Python. I have been trying to create Python scripts to automate some animations with volume rendering that I have been working on. I have found it very difficult to find out how to do various things from Python that are easily accessible from the m

Re: [Paraview] ParaView and Python general questions

2010-09-14 Thread Milos Ilak
ased on user-interface actions > (http://www.paraview.org/Wiki/Python_GUI_Tools). You might want to > wait for 3.8.1 (or try the release candidates) for better animation > support from Python. > > Utkarsh > > On Tue, Sep 14, 2010 at 8:21 AM, Milos Ilak wrote: > > Hi, > > > >

Re: [Paraview] ParaView and Python general questions

2010-09-14 Thread Milos Ilak
orientation axes didn't make it into > 3.8.1. You can either use the git-master (3.9) or wait for 3.10. In > 3.9 onwards, the following should work: > > > RenderView1 = GetRenderView() > RenderView1.OrientationAxesVisibility = 1 > RenderView1.CenterAxesVisibility = 1

Re: [Paraview] Problem with disconnecting from the builtin server in pvpython

2010-09-15 Thread Milos Ilak
Hi, I have a related question. I would like to use the Python interface to create movies of large datasets from .png files. Having the .pngs gives me flexibility in encoding them. I know that ParaView can export animations as .pngs files, but I would like to do this in offscreen mode and without r

Re: [Paraview] Problem with disconnecting from the builtin server in pvpython

2010-09-15 Thread Milos Ilak
subprocess.call(["/path/to/pvpython", "process_single_dataset.py", f]) > > > Pat > > > On Wed, Sep 15, 2010 at 5:35 PM, Milos Ilak wrote: > >> Hi, >> >> I have a related question. I would like to use the Python interface to >> create mov

[Paraview] importing for LUT xmls exported from ParaView GUI through Python

2010-09-16 Thread Milos Ilak
Hi, I needed to import a lookup table for volume plots that I saved from the GUI into Python, and I saw that this feature is not available, and still pending as reported here: http://paraview.org/Bug/view.php?id=9273 I wrote a little function, attached below, that parses the xml file and returns

[Paraview] zooming in when using perspective projection via vtkCamera.Zoom

2010-09-24 Thread Milos Ilak
Hi, I would like to be able to zoom during an animation using perspective projection. I am doing everything via a Python script. For parallel projection, the transformation is simple and one zooms just by changing a constant factor, i.e., setting the CameraParallelScale variable, and the camera do

Re: [Paraview] zooming in when using perspective projection via vtkCamera.Zoom

2010-09-24 Thread Milos Ilak
I just saw what I wrote...in second and fourth paragraph, I mean *perspective*, not parallel projection... Milos On Fri, Sep 24, 2010 at 11:47 AM, Milos Ilak wrote: > Hi, > > I would like to be able to zoom during an animation using perspective > projection. I am doing everything

Re: [Paraview] zooming in when using perspective projection via vtkCamera.Zoom

2010-09-28 Thread Milos Ilak
zoom in a straightforward fashion using Python scripts, and this seems to be possible only using parallel projection and CameraParallelScale. Regards, Milos On Fri, Sep 24, 2010 at 11:47 AM, Milos Ilak wrote: > Hi, > > I would like to be able to zoom during an animation usi

[Paraview] setting the flags for compilation for offscreen rendering support

2010-10-09 Thread Milos Ilak
Hi, I have been using ParaView with Python scripts successfully, but I still have the problem of offscreen rendering not working properly, i.e., I always get a screen popping up every few seconds while the script is running. From the discussion below I understand that setting up offscreen renderin

Re: [Paraview] setting the flags for compilation for offscreen rendering support

2010-10-09 Thread Milos Ilak
/packages/Mesa-7.2/lib64/libOSMesa.so > VTK_OPENGL_HAS_OSMESAON > VTK_USE_OFFSCREEN ON > > > On Sat, Oct 9, 2010 at 12:05 PM, Milos Ilak wrote: > >> Hi Andy, >> >> thanks! I have figured out that these are the options I need, but where &

Re: [Paraview] How do I save an animation from a python script?

2010-11-04 Thread Milos Ilak
Hi John, I don't know how one could save an entire animation from Python, but I use WriteImage() for each frame to output a .png, and I end up with a bunch of numbered images (I manually write the file names in a loop). That gives you more flexibility in encoding, as you can change the frame rate,