[Paraview] pvbatch + LoadState('..') +XDMF = empty image

Jens jens-devel at gmx.de
Thu May 27 14:56:15 EDT 2010


Hi,

I try to use pvbatch to render a whole bunch of screenshots using a
script. pvbatch works fine if I simply create a sphere and write that
image to disk.

But loading a predefined pipeline using LoadState('pstate.pvsm') which
includes a datset in XDMF file format fails.

Any idea what I am doing wrong?
This seems to be related to bug 6495
(http://www.itk.org/Bug/view.php?id=6495&nbn=2), but the suggested
solution cannot be used with LoadState(..).

Greetings
Jens

====================
from paraview import servermanager

# connect to pvserver
servermanager.Connect()

# reload state
#r = servermanager.LoadState('paraview_state.pvsm')

# render png
view = servermanager.CreateRenderView()
view.ResetCamera()
view.StillRender()
view.WriteImage( "Test1.png", "vtkPNGWriter" )
====================


More information about the ParaView mailing list