[Paraview] Auto save images

Tony McDaniel tonymcdaniel at gmail.com
Tue Apr 16 15:26:32 EDT 2013


Daniel,

I'm doing the same thing you are in my research. I load a dataset in 
Ensight format, add calculation filters, slice and export images.

You can integrate ParaView into regular python scripts by changing the 
interpreter to pvpython. For me, this means replacing:
#!/usr/local/bin/python
with
#!/Applications/paraview.app/Contents/bin/pvpython

Then you can use 'from paraview.simple import *' to access ParaView.

I used the Trace method that Alan suggested, and changed it into a 
function (eg. 'def paraview_process():'). This way, I can pass the name 
of the Ensight file to the python script and it automatically loads the 
data for manipulation.

For saving a screenshot, you should check out this sample script on the 
wiki:
http://paraview.org/Wiki/Take_a_Screenshot_of_a_VTP_File

Tony

paraview-request at paraview.org wrote:
> Auto save images


More information about the ParaView mailing list