[Paraview] automatically export image from state

Martin Genet mgenet at lbl.gov
Mon Feb 6 15:22:30 EST 2012


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


More information about the ParaView mailing list