[Paraview] Paraview in Batch-Mode (Python) ...

Peter Brady petertbrady at gmail.com
Thu Jun 18 12:17:20 EDT 2009


Stefan,

When building paraview, you need to add OSMesa support.  It's
described in the wiki here:
http://www.paraview.org/Wiki/Setting_up_a_ParaView_Server#OSMesa_support

Then you can either run the server in off-screen-mode or set the flag
via python (i.e. view.UseOffscreenRenderingForScreenshots = 1).

Good luck,

Peter.

On Wed, Jun 17, 2009 at 11:10 PM, Stefan Melber<Stefan.Melber at dlr.de> wrote:
> Hi,
>
>
> when i run Paraview in batch mode (means using Python) and i write out
> export a picture i always get window with the title "Visualisation Toolkit -
> OpenGL" poping up. Is there a way to switch if off?
>
> Here the code:
>
> from paraview.servermanager import *
>
> Connect()
> LoadState("magv.pvsm")
> view = GetRenderView()
> view.WriteImage("test.png", "vtkPNGWriter", 1)
>
>
> Best regards,
>
>    Stefan
>
> =================================================================
>
>                                   Stefan Melber-Wilkending
>                     _/
>                   _/_/            Fields of activities:
>                 _/  _/            -) High-Lift Research
>         _/_/_/_/_/_/_/_/_/_/      -) Complex Configurations
>       _/    _/    _/    _/        -) Numerical Wind-Tunnel
>     _/    _/    _/    _/          -) Supercomputing
>   _/_/_/_/_/_/_/_/_/_/            -) Visualisation Techniques
>         _/  _/  _      _          -) Glider-Aerodynamics
>         _/_/   | \ |  |_|
>         _/     |_/ |_ | \         German Aerospace Center, DLR
>                                   in the Helmholtz-Association
>  Phone ..: +49 531/295-2836       Institute of Aerodynamics
>  Fax. ...: +49 531/295-2320       and Flow Technology
>  Email ..: Stefan.Melber at dlr.de   Lilienthalplatz 7
>  Web ....: http://www.dlr.de/AS   D-38106 Braunschweig/Germany
> =================================================================
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> 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