Hi all.  I&#39;m a newbie to both ParaView and Python scripting.  I have a large number of *.raw files that I wish to load, visualize and save via a screenshot.  To do this, I used the start/stop trace feature to produce a python script for one instance, edited the python script by adding a for loop, then ran it with pvbatch.  The script produces the correct output, but it takes progressively longer on each iteration.  To give you an idea, I started a batch of 200 files yesterday afternoon -- the first one took 10 seconds, but right now it&#39;s only on 180!  I know that in Matlab, allocating and re-allocating progressively larger memory chunks in a loop can cause this behavior, but I don&#39;t see this happening here.  Below is my script -- I appreciate any help anyone can give.<div>
<br></div><div><div>for count in range(1,204):</div><div>  try: paraview.simple</div><div>  except: from paraview.simple import *</div><div>  paraview.simple._DisableFirstRenderCameraReset()  </div><div><br></div><div>  filename=&#39;/home/andy/Desktop/L2-1 Dicom/data8/rho_180x180x180_frame%04d_subs01_total.raw&#39; % (count)</div>
<div>  rho_180x180x180_frame0010_subs01_total_raw = ImageReader( FilePrefix=filename )</div><div><br></div><div>  rho_180x180x180_frame0010_subs01_total_raw.DataExtent = [0, 179, 0, 179, 0, 179]</div><div>  rho_180x180x180_frame0010_subs01_total_raw.DataScalarType = &#39;unsigned char&#39;</div>
<div><br></div><div>  RenderView1 = GetRenderView()</div><div>  a1_ImageFile_PVLookupTable = GetLookupTableForArray( &quot;ImageFile&quot;, 1, NanColor=[0.25, 0.0, 0.0], RGBPoints=[0.0, 0.23, 0.299, 0.754, 255.0, 0.706, 0.016, 0.15], VectorMode=&#39;Magnitude&#39;, ColorSpace=&#39;Diverging&#39;, ScalarRangeInitialized=1.0 )</div>
<div><br></div><div>  a1_ImageFile_PiecewiseFunction = CreatePiecewiseFunction( Points=[0.0, 0.0, 0.5, 0.0, 255.0, 1.0, 0.5, 0.0] )</div><div><br></div><div>  DataRepresentation1 = Show()</div><div>  DataRepresentation1.EdgeColor = [0.0, 0.0, 0.5000076295109483]</div>
<div>  DataRepresentation1.SelectionPointFieldDataArrayName = &#39;ImageFile&#39;</div><div>  DataRepresentation1.ScalarOpacityFunction = a1_ImageFile_PiecewiseFunction</div><div>  DataRepresentation1.ColorArrayName = &#39;ImageFile&#39;</div>
<div>  DataRepresentation1.ScalarOpacityUnitDistance = 1.7320508075688779</div><div>  DataRepresentation1.LookupTable = a1_ImageFile_PVLookupTable</div><div>  DataRepresentation1.Representation = &#39;Volume&#39;</div><div>
  DataRepresentation1.ScaleFactor = 17.900000000000002</div><div><br></div><div>  RenderView1.CameraViewUp = [-0.24428917240633777, 0.2192776215931415, 0.9445846308899386]</div><div>  RenderView1.CameraPosition = [495.4123489395223, -304.665940440324, 285.97976015645276]</div>
<div>  RenderView1.CameraClippingRange = [296.6155313125564, 980.96172641737]</div><div>  RenderView1.CameraFocalPoint = [89.5, 89.50000000000001, 89.5]</div><div>  RenderView1.CameraParallelScale = 155.0185472774145</div>
<div>  RenderView1.CenterOfRotation = [89.5, 89.5, 89.5]</div><div><br></div><div>  filename_out=&#39;/home/andy/Desktop/L2-1 Dicom/data8/frame_%04d.bmp&#39; % (count)</div><div>  WriteImage(filename_out)</div></div>