Hi Celia,<div><br></div><div>I'm not sure to follow what you mean by "<span style="font-family:arial,sans-serif;font-size:13px">it freezes" and "</span><span style="font-family:arial,sans-serif;font-size:13px">new layout window".</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">When you render something from Python, the window is not interactive, so maybe that's what you call freeze. And you need to manually call Render() to update its content.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">Regarding the layout window, I don't really have a clue what that could be.</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">So I let you explain a bit more.</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Thanks,</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Seb</span></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 16, 2012 at 1:21 PM, Celia Bremer <span dir="ltr"><<a href="mailto:fuwsle@hotmail.com" target="_blank">fuwsle@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Thank you. That worked but I still have problems: as soon as the OpenGL window opens to render, it freezes, even if all the objects are hidden. I think I'll have to do it from the Python shell from PV instead. I have just one more question.<br>
<br>
When I load a state using LoadState(), that automatically opens a new layout window. If I open the same state file from the GUI, no new window is opened, so I don't think it's a property stored in the state file. If I'm going to loop through 60 state files, I imagine all these windows would become a problem. How do I either close the window, or prevent it from opening in the first place?<br>
<br>
Celia<br>
<br>
----------------------------------------<br>
> From: <a href="mailto:dave.demarle@kitware.com">dave.demarle@kitware.com</a><br>
> Date: Fri, 16 Nov 2012 10:52:45 -0500<br>
<div class="im">> Subject: Re: [Paraview] help with a simple script?<br>
</div>> To: <a href="mailto:fuwsle@hotmail.com">fuwsle@hotmail.com</a><br>
> CC: <a href="mailto:sebastien.jourdain@kitware.com">sebastien.jourdain@kitware.com</a>; <a href="mailto:paraview@paraview.org">paraview@paraview.org</a><br>
<div class="HOEnZb"><div class="h5">><br>
>> from paraview import servermanager<br>
>> from paraview.simple import *<br>
>> servermanager.LoadState("test.pvsm")<br>
><br>
> SetActiveView(GetRenderView()) #you are missing this<br>
><br>
>> view = GetActiveView()<br>
>> view.ViewTime<br>
>> </div></div></blockquote></div><br></div>