<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1" style="word-wrap:break-word; color:rgb(0,0,0); font-size:14px; font-family:Calibri,sans-serif">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><br>
Dear All<br>
<br>
I am trying to visualise a series of VTK files using pvbatch and I get an error.<br>
<br>
I write VTK files with a header as ascii, and then data as a 32 bit int binary. I can visualise individual files. As there are many files, I would like to automate this process. To do so, I produce a pvsm file using ParaView interactively. To loop over the
pvsm, I have constructed the following python script:<br>
<br>
from paraview.simple import *<br>
servermanager.LoadState("kuntest.pvsm")<br>
SetActiveView(GetRenderView())<br>
for i in range(1,40, 3):<br>
print 'h%04d.vtk' % (i)<br>
FindSource("h0001.vtk").FileNames ='h%04d.vtk' % (i)<br>
WriteImage('h_%06d.png' % (i))<br>
<br>
When I try to run the visualisation simulation by the command, I get an error that I do not understand:<br>
<br>
h0001.vtk<br>
Traceback (most recent call last):<br>
File "crn3d_color_sync_frames.py", line 7, in <module><br>
FindSource("h0001.vtk").FileNames ='h%04d.vtk' % (i)<br>
AttributeError: 'NoneType' object has no attribute 'FileNames'<br>
<br>
Can you comment?<br>
<br>
thanks<br>
Sanjay<br>
<br>
</div>
</body>
</html>