Hi Celia, I'm not sure to follow what you mean by "it freezes" and "new layout window".
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. Regarding the layout window, I don't really have a clue what that could be. So I let you explain a bit more. Thanks, Seb On Fri, Nov 16, 2012 at 1:21 PM, Celia Bremer <fuw...@hotmail.com> wrote: > > 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. > > 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? > > Celia > > ---------------------------------------- > > From: dave.dema...@kitware.com > > Date: Fri, 16 Nov 2012 10:52:45 -0500 > > Subject: Re: [Paraview] help with a simple script? > > To: fuw...@hotmail.com > > CC: sebastien.jourd...@kitware.com; paraview@paraview.org > > > >> from paraview import servermanager > >> from paraview.simple import * > >> servermanager.LoadState("test.pvsm") > > > > SetActiveView(GetRenderView()) #you are missing this > > > >> view = GetActiveView() > >> view.ViewTime > >> >
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview