[Paraview] WriteImage in the background

pat marion pat.marion at kitware.com
Thu Sep 29 12:11:34 EDT 2011


Another option, you can use your window manager to automatically move the
windows to a different workspace and they won't get in your way.  If you
have compiz enabled, then you can use the Place Windows plugin.  Below is a
script that I use to get those vtk windows out of my way.  The script
automates settings that you can access in compiz config settings manager
gui.

Pat


#!/bin/bash

workspace=4
match_rule="class=Paraview|class=vtk"

key="/apps/compiz/plugins/place/screen0/options"

if [ "$1" == "on" ]
then
  echo "enabling place windows"
  gconftool-2 --set "$key/viewport_matches" --type list --list-type string
"[$match_rule]"
  gconftool-2 --set "$key/viewport_x_values" --type list --list-type int
"[$workspace]"
  gconftool-2 --set "$key/viewport_y_values" --type list --list-type int
"[1]"
elif [ "$1" == "off" ]
then
  echo "disabling place windows"
  gconftool-2 --set "$key/viewport_matches" --type list --list-type string
"[]"
  gconftool-2 --set "$key/viewport_x_values" --type list --list-type int
"[]"
  gconftool-2 --set "$key/viewport_y_values" --type list --list-type int
"[]"
else
  echo "Usage: $0 [on|off]"
  exit 1
fi


On Thu, Sep 29, 2011 at 11:24 AM, Andy Bauer <andy.bauer at kitware.com> wrote:

> As far as I know, using mesa and offscreen rendering is the only way to do
> that.  Information on that is available at
> http://www.vtk.org/Wiki/ParaView/Users_Guide/Parallel_Rendering#Offscreen_Software_Rendering_via_OSMesa
>
> Andy
>
> On Thu, Sep 29, 2011 at 11:06 AM, Rick Muller <rpmuller at gmail.com> wrote:
>
>> I'm currently doing some rendering on a large collection of exodus files
>> using pvpython. I would like for this rendering to be done in the
>> background. However, when I call WriteImage(filename), paraview pops up an
>> X-window, and renders to the screen while saving the image. Is there any way
>> to keep the window from showing up?
>>
>> Rick Muller
>>
>>
>> _______________________________________________
>> 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
>>
>>
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110929/f203e946/attachment.htm>


More information about the ParaView mailing list