Hi everyone,
I have several data files and I would like to produce an image from every file. I can generate a visualization state, pvsm, and use it for everyfile but it takes time. Is it possible from the terminal to apply the visualization to all the files and and save an image for every file? The data are binary data that I load as raw binary files and then inside the properties I set the data extent.
This is a perfect case to use Python scripting. Please have a look at section 1.6 in the ParaView Guide for an introduction. Information about Python scripting is woven throughout the guide as well.
Thanks for the reply. I have tried to trace the actions and got a python script. It does almost the job but the final image is 400x400 pixels even though I have selected 1517x920 during the tracing. The orientation axes and the center apperas but I have removed that during the tracing. Addittonaly the color I have selected for the isosurface is replaced with the default color. Do you know how to solve this two problems?
There is a hint to that effect in scripts written from ParaView 5.5.2. (You did not specify the version you were using.)
Additionally, newer versions of ParaView have a SaveScreenshot function (which replaces WriteImage). This new function also allows you to specify the image resolution of the file being written out.
There are a few gaps here and there in the Python tracing (fewer in newer versions of ParaView, 4.0.1 is fairly old at this point), which perhaps explains why your orientation and center axes visibility change was not recorded. In ParaView 5.5.2, I ran a trace and got the following: