<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>I use the PV 4.3.<div><br></div><div>There is no reason to write a new script, it was a result from testing suggestions regarded in the samples provided in the menu.</div><div><br></div><div>Can you provide me the correct code to test in my computer/PV version?</div><div><br></div><div>Madalena<br><br><div><hr id="stopSpelling">Date: Mon, 2 Mar 2015 17:25:32 +0100<br>From: stephen.wornom@inria.fr<br>To: nenasantos@hotmail.com<br>CC: niklas.karcher@dlr.de; paraview@paraview.org<br>Subject: Re: [Paraview] Save 2 views as animations/images in same layout<br><br>
<div class="ecxmoz-cite-prefix">Madalena S. Malhadas wrote:<br>
</div>
<blockquote cite="mid:DUB109-W942210D77481AE299E46E6DF100@phx.gbl">
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style>
<div dir="ltr"><br>
Dear all,
<div>I have a script that animate two views in same layout. The
Scritp run fine, but apears to have a problem saving one
single image formed by the 2 views.</div>
<div><br>
</div>
<div>I made a simple test by running the trace in paraview,
creating and saving to views. Follow the example below and the
output attached. The example compose the 2 views but produces
also a black square in corner. Any one know to solve the
problem?</div>
<div><br>
</div>
<div>Kind regards</div>
</div>
</blockquote>
I have done this with PV 4.1. Split the screen and organize the two
views,click on the animate icon, unclick "save selected view" ,<br>
should work.</div><div><br></div><div>
<br>
Is there a reason why you write a new script?<br>
Stephen<br>
<blockquote cite="mid:DUB109-W942210D77481AE299E46E6DF100@phx.gbl">
<div dir="ltr">
<div><br>
</div>
<div>--------------------------------------------------script
example-------------------------------------------------------------------</div>
<div><br>
</div>
<div>
<div># get active view</div>
<div>renderView1 = GetActiveViewOrCreate('RenderView')</div>
<div><br>
</div>
<div># get layout</div>
<div>viewLayout1 = GetLayout()</div>
<div><br>
</div>
<div># split cell</div>
<div>viewLayout1.SplitVertical(0, 0.5)</div>
<div><br>
</div>
<div># Create a new 'Render View'</div>
<div>renderView2 = CreateView('RenderView')</div>
<div>renderView2.ViewSize = [1156, 383]</div>
<div>renderView2.StereoType = 0</div>
<div>renderView2.Background = [0.32, 0.34, 0.43]</div>
<div><br>
</div>
<div>renderView1 = GetRenderView()</div>
<div>renderView2 = GetRenderViews()[1]</div>
<div><br>
</div>
<div># current camera placement for renderView1</div>
<div><br>
</div>
<div># current camera placement for renderView2</div>
<div><br>
</div>
<div># current camera placement for renderView2</div>
<div><br>
</div>
<div><br>
</div>
<div>SaveAnimation
('C:/Users/madalenasantos/Desktop/Paraview/Teste.jpg',
layout=viewLayout1)</div>
<div><br>
</div>
<div>-------------------------------------------------------------------------------------------------------------------------------------------</div>
<div><br>
</div>
</div>
</div>
<br>
<fieldset class="ecxmimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
Powered by <a class="ecxmoz-txt-link-abbreviated" href="http://www.kitware.com" target="_blank">www.kitware.com</a>
Visit other Kitware open-source projects at <a class="ecxmoz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the ParaView Wiki at: <a class="ecxmoz-txt-link-freetext" href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a>
Search the list archives at: <a class="ecxmoz-txt-link-freetext" href="http://markmail.org/search/?q=ParaView" target="_blank">http://markmail.org/search/?q=ParaView</a>
Follow this link to subscribe/unsubscribe:
<a class="ecxmoz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a>
</pre>
</blockquote>
<br>
<br>
<pre class="ecxmoz-signature">--
<a class="ecxmoz-txt-link-abbreviated" href="mailto:stephen.wornom@inria.fr">stephen.wornom@inria.fr</a>
2004 route des lucioles - BP93
Sophia Antipolis
06902 CEDEX
Tel: 04 92 38 50 54
Fax: 04 97 15 53 51
</pre></div></div> </div></body>
</html>