<div dir="ltr"><div>Hello, <br><br></div>My Data is of type h5 that I open using PFlotran HDF5 reader in ParaView which
are result of PFlotran simulation.<br><div><div><br></div><div>What I am trying to do is to write an image at a certain time step and then finally write a batch job that writes an image for each time step of the simulation result.<br>
<br></div>If I try to interactively go to a certain time step and then save an image, everything works fine.<br><br></div><div>The problem is I have 40 time steps and I want to do the same procedure often. So I saved my state file as a python script and then set these few lines at the end of script just before Render().<br>
<br>RenderView1.ViewTime = 0.0<br>RenderView1.CacheKey = 0.0<br>RenderView1.UseCache = 0<br>AnimationScene1 = GetAnimationScene()<br>AnimationScene1.AnimationTime = 0.0<br>WriteImage('myImage.jpg')<br><br>Render()<br>
<br><br></div><div>My timeSeries start at 0 and the python script works just fine for 0.<br><br></div><div>If I change the following lines to 10000 (my final time step) or any other time step, then pvpython crashes, that is the following change to the script makes the pvpython crash:<br>
<br>RenderView1.ViewTime = 10000.0<br>RenderView1.CacheKey = 10000.0<br>RenderView1.UseCache = 0<br>AnimationScene1 = GetAnimationScene()<br>AnimationScene1.AnimationTime = 10000.0<br>WriteImage('myImage.jpg')<br>
<br>Render()<br><br></div><div>I used the trace to see what values I need to change to save an screen shot for any time step and I ended up with ViewTime and AnimationTime.<br><br></div><div>I have attached my script with this email. I would be grateful if you could please tell me if I need to change more in my script or add any additional lines to be able to get an screenshot of any timestep rather than 0.<br>
<br></div><div>Thanks in Advance.<br><br></div><div>Hedie</div></div>