[Paraview] automatically export image from state
Utkarsh Ayachit
utkarsh.ayachit at kitware.com
Mon Feb 6 15:36:56 EST 2012
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 <mgenet at 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
More information about the ParaView
mailing list