Maybe try upgrading to the latest/greatest ParaView on the web site?  It is 
3.98.1.  What is your platform?  If you don't see  Python Shell under the Tools 
tab, your issue has changed from "how to create and run this script" to "Why 
don't I have Python".

Alan

From: Daniel WEI [mailto:[email protected]]
Sent: Tuesday, April 16, 2013 1:15 PM
To: Scott, W Alan
Cc: paraview
Subject: Re: [EXTERNAL] [Paraview] Auto save images

Wait, I can't find what you said "start/stop trace", nor can I find any python 
under tools menu? Am I using a wrong paraview? My is ParaView 3.14.1 64 bit. 
Ubuntu

Thanks, and Yes, that is basically what I need. Ultimately, I would hope I can 
save images for my velocity field or pressure field without opening paraview 
window, I hope I can just modify the script to do it.





Daniel WEI
----------------------
University of Notre Dame

On Tue, Apr 16, 2013 at 3:08 PM, Scott, W Alan 
<[email protected]<mailto:[email protected]>> wrote:
Daniel,

Yes, there is.  Create a Python script of what you want to do.  Easiest way is 
to open ParaView, Tools/ Start Trace, do your work, Tools/ Stop Trace.  Save 
the file somewhere.  To test it, start ParaView from scratch (or just delete 
everything in the pipeline browser), Tools/ Python Shell/ Run Script/ select 
the python script you choose earlier.

Then, close ParaView, and run your script with pvbatch your-script.py

Is that what you are asking?

Alan

From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>] On 
Behalf Of Daniel WEI
Sent: Tuesday, April 16, 2013 12:44 PM
To: paraview
Subject: [EXTERNAL] [Paraview] Auto save images

Hi all

Is there a way to run paraview in batch mode. I want to save images 
automatically.

What I am doing is pretty simple, use paraview to view an flow field and then 
pan it and zoom into a certain region and then save the screenshot. That's it. 
I dont want to repeat this operation all the time. I want to do it for all my 
cases in the back-end and in batch mode without opening paraview window.

Is it possible? How? What kind of scripts should I write?

Many thanks in advance!




Daniel WEI
----------------------
University of Notre Dame

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to