<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<br>
Hi David, All<br>
<br>
Can you point out what are the paraview objects in the script pasted below?<br>
My approach for the next step of improving its efficiency is by deleting<br>
all the objects that I create at each iteration.<br>
<br>
Whereas this may be suboptimal, I will get it working before I go to<br>
the next step.<br>
<br>
cheers<br>
Sanjay<br>
<br>
<br>
try: paraview.simple<br>
except: from paraview.simple import *<br>
<br>
for i in range(0,4999,1):<br>
    paraview.simple._DisableFirstRenderCameraReset()<br>
    RenderView1 = GetRenderView()<br>
    my_2d0_vts = XMLStructuredGridReader( FileName=['my_2d%i.vts' % (i)] )<br>
    RenderView1.CenterAxesVisibility = 0<br>
    RenderView1.OrientationAxesVisibility = 0<br>
    my_2d0_vts.PointArrayStatus = ['Unnamed0']<br>
    DataRepresentation1 = Show()<br>
    DataRepresentation1.EdgeColor = [0.0, 0.0, 0.5000076295109483]<br>
    RenderView1.CenterOfRotation = [78.0, 58.5, 0.0]<br>
    Transform1 = Transform( Transform="Transform" )<br>
    a1_Unnamed0_PVLookupTable = GetLookupTableForArray( "Unnamed0", 1, NanColor=[0.25, 0.0, 0.0], RGBPoints=[0.0, 0.23, 0.299, 0.754, 1.0, 0.7059953924945706, 0.01625293517428646, 0.1500022472819457], VectorMode='Magnitude', ColorSpace='Diverging', LockScalarRange=1
 )<br>
    a1_Unnamed0_PiecewiseFunction = CreatePiecewiseFunction( Points=[-0.1, 0.0, 1.0, 1.0] )<br>
    ScalarBarWidgetRepresentation1 = CreateScalarBar( Title='Unnamed0', LabelFontSize=12, Enabled=1, LookupTable=a1_Unnamed0_PVLookupTable, TitleFontSize=12 )<br>
    GetRenderView().Representations.append(ScalarBarWidgetRepresentation1)<br>
    RenderView1.CameraPosition = [78.0, 58.5, 376.71107225273664]<br>
    RenderView1.CameraFocalPoint = [78.0, 58.5, 0.0]<br>
    RenderView1.CameraClippingRange = [372.94396153020926, 382.3617383365277]<br>
    RenderView1.CameraParallelScale = 97.5<br>
    DataRepresentation1.ColorArrayName = 'Unnamed0'<br>
    DataRepresentation1.LookupTable = a1_Unnamed0_PVLookupTable<br>
    Transform1.Transform = "Transform"<br>
    DataRepresentation2 = Show()<br>
    DataRepresentation2.ColorArrayName = 'Unnamed0'<br>
    DataRepresentation2.LookupTable = a1_Unnamed0_PVLookupTable<br>
    DataRepresentation2.EdgeColor = [0.0, 0.0, 0.5000076295109483]<br>
    DataRepresentation1.Visibility = 0<br>
    Transform1.Transform.Scale = [1.0, -1.0, 0.0]<br>
    Text1 = Text()<br>
    RenderView1.CameraViewUp = [0.0, 1.0, 0.0]<br>
    RenderView1.CameraPosition = [78.0, -58.5, 376.71107225273664]<br>
    RenderView1.CameraFocalPoint = [78.0, -58.5, 0.0]<br>
    RenderView1.CenterOfRotation = [78.0, -58.5, 0.0]<br>
    RenderView1.CameraClippingRange = [372.94396153020926, 382.3617383365277]<br>
    Text1.Text = '2D macro re-entry'<br>
    DataRepresentation3 = Show()<br>
    DataRepresentation3.Color = [0.3333333333333333, 0.0, 0.4980392156862745]<br>
    WriteImage('reentry2d%06i.png' % (i))<br>
    Render()<br>
    Delete(my_2d0_vts)<br>
    Delete(RenderView1)<br>
    Delete(Text1)<br>
#    Delete(DataRepresentation1) # pvbatch didnt like this<br>
    Delete(DataRepresentation2)<br>
#    Delete(DataRepresentation3) # pbatch didnt like this, not defined for Delete<br>
#    Delte(LookupTable) # not defined for Delete<br>
    Delete(a1_Unnamed0_PVLookupTable)<br>
    Delete(a1_Unnamed0_PiecewiseFunction)<br>
    Delete(ScalarBarWidgetRepresentation1)<br>
#    Delete(RGBPoints) # not defined for Delete<br>
</div>
</body>
</html>