<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">and another option, If you are on Linux
you could also set up an second x screen, send your pvbatch jobs
there. You'll still be able to use your gpu.<br>
<br>
Burlen<br>
<br>
On 03/18/2013 10:19 AM, Sebastien Jourdain wrote:<br>
</div>
<blockquote
cite="mid:CABObKxd95yfUHuiSDvxwQkz3HNFi+1B7qemkbUVkv2oXdxwbJA@mail.gmail.com"
type="cite">
<div dir="ltr">You will need to compile ParaView with OS Mesa,
otherwise a window will always popup even if the offscreen
rendering is turned ON. If so the window content will stay black
but the window will still show up.
<div>
<br>
</div>
<div>Seb</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Mon, Mar 18, 2013 at 11:06 AM, Anton
Shterenlikht <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:mexas@bristol.ac.uk" target="_blank">mexas@bristol.ac.uk</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">The script
below works for me in paraveiw 3.10<br>
with pvpython and pvbatch. However, in pvbatch<br>
it still opens a graphical window for a short time.<br>
How can I modify the script to *not* open any<br>
graphical windows when run with pvbatch?<br>
<br>
Can I do away with CreateRenderView()?<br>
<br>
Thanks<br>
<br>
Anton<br>
<br>
from paraview.simple import *<br>
#Connect()<br>
reader=ImageReader(FilePrefix="z.raw")<br>
reader.DataByteOrder=1<br>
reader.DataExtent=[1,40,1,40,1,40]<br>
reader.DataScalarType=6<br>
<br>
view = GetActiveView()<br>
if not view:<br>
view = CreateRenderView()<br>
view.ViewSize=[600,600]<br>
<br>
Show()<br>
<br>
dp = GetDisplayProperties(reader)<br>
dp.LookupTable = MakeBlueToRedLT(1,64)<br>
dp.ColorAttributeType = 'POINT_DATA'<br>
dp.ColorArrayName = 'ImageFile'<br>
dp.Representation="Surface"<br>
<br>
camera = GetActiveCamera()<br>
camera.SetViewUp(-1,0,0)<br>
camera.Azimuth(30)<br>
camera.Elevation(30)<br>
<br>
#camera.SetPosition(0,0,100)<br>
#camera.Roll(-90)<br>
<br>
Render()<br>
<br>
WriteImage("z.png")<br>
_______________________________________________<br>
Powered by <a moz-do-not-send="true"
href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a
moz-do-not-send="true"
href="http://www.kitware.com/opensource/opensource.html"
target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki
at: <a moz-do-not-send="true"
href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a moz-do-not-send="true"
href="http://www.paraview.org/mailman/listinfo/paraview"
target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the ParaView Wiki at: <a class="moz-txt-link-freetext" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a>
</pre>
</blockquote>
<br>
</body>
</html>