Hello all,<br><br>I have 5000 cosmo files that I need to visualize and save each as a .png file.<br><br>If I had one file, I&#39;d <br>1. open it in paraview<br>2. choose glyph filter<br>3. choose <br>     vector : velocity<br>
     glyph type: arrow<br>     color by: glyphVector<br>4. press &quot;reset&quot; button<br>5. adjust camera -&gt; azimuth (XX)<br>6. File-&gt;Save ScreenShot<br>7. type &quot;output_filename&quot;<br><br>I need to automate this process, but I don&#39;t know how.<br>
I do know how to read cosmo file into unstructured grid,<br>how to create a window, but i don&#39;t know how to set<br>all these parameters and save an image.<br><br><br>int main ()<br>{<br>    vtkUnstructuredGrid *data;                       <br>
    vtkSmartPointer&lt;vtkCosmoReader&gt; reader = vtkSmartPointer&lt;vtkCosmoReader&gt;::New(); <br><br>    reader-&gt;SetFileName(&quot;input_filename.cosmo&quot;);<br>    reader-&gt;Update();<br>    data = reader-&gt;GetOutput(0);<br>
<br>    vtkSmartPointer&lt;vtkUnstructuredGridGeometryFilter&gt; geometryFilter = vtkSmartPointer&lt;vtkUnstructuredGridGeometryFilter&gt;::New();<br>    geometryFilter-&gt;SetInputConnection(data-&gt;GetOutputPort());<br>
    geometryFilter-&gt;Update(); <br><br>    //Create a mapper and actor<br>    vtkSmartPointer&lt;vtkDataSetMapper&gt; mapper =   vtkSmartPointer&lt;vtkDataSetMapper&gt;::New();<br>    mapper-&gt;SetInputConnection(geometryFilter-&gt;GetOutputPort());<br>
    vtkSmartPointer&lt;vtkActor&gt; actor =  vtkSmartPointer&lt;vtkActor&gt;::New();<br>    actor-&gt;SetMapper(mapper); <br><br>    // a renderer and render window<br>   vtkRenderer *ren = vtkRenderer::New();<br>   vtkRenderWindow *renWin = vtkRenderWindow::New();<br>
   renWin-&gt;AddRenderer(ren);<br><br>   // an interactor<br>   vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();<br>   iren-&gt;SetRenderWindow(renWin);<br><br>   // add the actor to the scene<br>   ren-&gt;AddActor(actor);<br>
   ren-&gt;SetBackground(1,1,1); // Background color white<br><br>   renWin-&gt;Render();<br><br>  // begin mouse interaction<br>   iren-&gt;Start();<br><br>  ren1-&gt;Delete();<br>  renWin-&gt;Delete();<br>  iren-&gt;Delete();<br>
  return EXIT_SUCCESS;<br>} <br><br><br>Any ideas, suggestions, code examples are highly appreciated,<br>ula<br>