[Paraview] Is it possible to prevent the render window to appear when using a python script?
Karl König
kkoenig11 at web.de
Thu Jan 31 15:36:41 EST 2013
Matthieu,
This question comes up quite frequently on the list, in fact just
yesterday. There is Andy's suggestion of reverting to OSMesa for
rendering to get rid of the window (at the expense of not using graphics
hardware any more):
http://markmail.org/message/jzwfszl2yqkjkbq3
You might try the solution Pat suggested in case you are using Gnome
desktop: http://markmail.org/message/g4wcbwukeqnzuztn
I haven't tried it in quite a while, but I reckon using a separate X
server as Kevin suggested a few years back should still work, too:
http://markmail.org/message/mtcu4t7xnjih5svq
Karl
Masquelet, Matthieu (GE Global Research) wrote, On 31.01.2013 20:38:
> I have a python script that loads a series of pvsm file to generate a
> sequence of animation. Here are a few pv-related statements in my script:
>
> from paraview.simple import *
> …
> paraview.simple._DisableFirstRenderCameraReset()
> …
> for loop:
> servermanager.LoadState(tmp2)
> view = servermanager.GetRenderView()
> view.StillRender()
> …
> view.WriteImage(…)
> Delete(view)
>
>
>
> During the loop the render window appears on the foreground, does not
> matter whether I run through pvpython or pvbatch. Is there a way around
> that? Not only would it be more convenient but also I assume it could be
> quite a bit faster.
More information about the ParaView
mailing list