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: [email protected]
> Date: Fri, 16 Nov 2012 10:52:45 -0500
> Subject: Re: [Paraview] help with a simple script?
> To: [email protected]
> CC: [email protected]; [email protected]
>
>> 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

Reply via email to