Many thanks for your help, Utkarsh.
I have tried your solution, but I get "TypeError: 'RenderView' object does not
support indexing".
However, thanks to your comment I moved to 3.12 (I was running 3.10), and now
everything works fine.
A thousand thanks!
Martin
On 02/06/2012 12:36 PM, Utkarsh Ayachit wrote:
There was a bug in the past with GetRenderView() that I'm sure has
been fixed for a while. Not sure, if you're running into it. Try this
instead:
from paraview.simple import *
servermanager.LoadState("toto.pvsm")
SetActiveView(GetRenderViews()[0])
Render()
WriteImage("toto.png")
Utkarsh
On Mon, Feb 6, 2012 at 3:22 PM, Martin Genet<mge...@lbl.gov> wrote:
Dear all:
I'm trying to use a small script to automatically load a state and create an
image. Here it is:
from paraview.simple import *
servermanager.LoadState("toto.pvsm")
SetActiveView(GetRenderView())
Render()
WriteImage("toto.png")
The script runs well, but the created file is all black except for the axes
etc. I'm running Linux. Any help would be highly appreciated.
Martin
_______________________________________________
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
_______________________________________________
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