[Paraview] Script driven paraview

2013-05-04 Thread Timothy Cale
I would like to display a set of meshes that result from a (bash) script driven set of simulations and meshing steps. I have written a script that does what I want (at least basically), if I manually go into the paraview gui and start the (Tools -->) Python Shell, then hit run script and select th

Re: [Paraview] Script driven paraview

2013-05-08 Thread Utkarsh Ayachit
You can use the "--script" command line argument to "paraview" executable to run a Python script after startup e,g, > paraview --script=show_vtu.py Utkarsh On Sat, May 4, 2013 at 12:45 PM, Timothy Cale wrote: > I would like to display a set of meshes that result from a (bash) script > driven set

Re: [Paraview] Script driven paraview

2013-05-09 Thread Timothy Cale
Utkarsh: Thanks! Works! I had tried that: I thought it had not worked, because it (python?, pvpython?) did not print to the screen from a test script. Is there a way to print info to the screen (or to a specified file)? When I use "Run Script" (to run show_vtu.py) from the python shell that is s

Re: [Paraview] Script driven paraview

2013-05-09 Thread Pat Marion
Hi Tim, ParaView reassigns sys.stdout so that output can be routed to the ParaView python console window. Your script could set stdout back to the original value: import sys sys.stdout = sys.__stdout__ sys.stderr = sys.__stderr__ For documentation, see: http://docs.python.org/2/library/sys.htm