[Paraview] Save View Image in Session Trace

Brad King brad.king at kitware.com
Tue Nov 30 08:39:10 EST 2004


Benjamin Phillips wrote:
> I would like to create a Paraview trace file that writes view images 
> periodically (for later creation of an animated gif). I have a trace 
> file that produces desired views, but I'm not sure how to script in the 
> step to "Save View Image" between views. I tried manually saving an 
> example view image and writing a session trace, but this doesn't produce 
> any lines in the trace file corresponding to "Save View Image" that I 
> can use as a model for my script. Also, if this is possible, can I 
> expect trouble with the save window appearing over the image?

Use this command in the script:

[$Application GetMainView] SaveAsImage "/path/to/myimage.png"

No dialog will be displayed so you will not have to worry about the save 
window appearing over the image (I think this problem will be fixed soon 
anyway).

-Brad


More information about the ParaView mailing list