<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'>Ok. Thank you very much.<div><br></div><div>I have a scrip that read a nc file and plot the sediments cloud from a clarifier . The script already save each image from each instant of my nc file. Now i want to include in each slide the data. So, i want that the scrip associate and write the correc data text in each slide. How can include these feature in my script? Can you help me?</div><div><br></div><div>Kind regards</div><div><br></div><div>Madalena</div><div><br></div><div><br><br><div><hr id="stopSpelling">From: kmorel@sandia.gov<br>To: nenasantos@hotmail.com; jeffrey.c.becker@nasa.gov; utkarsh.ayachit@kitware.com<br>CC: paraview@paraview.org<br>Subject: Re: [Paraview] Insert text source into view in a script<br>Date: Thu, 26 Feb 2015 17:41:49 +0000<br><br>
<style><!--
.ExternalClass p, .ExternalClass li {
white-space:pre-wrap;
}
--></style>
<div style="font-family:Calibri, sans-serif;">
<div>
<div>Try using the ParaView tracing feature (Tools -> Start Trace, Stop Trace) to learn script commands that mimic things you do in the GUI. Using ParaView 4.3.1, I started script tracing, created a text source, and stopped the tracing. I got the following
commands:</div>
</div>
</div>
<div style="font-family:Calibri, sans-serif;"><br>
</div>
<div>
<p style=""><span style="font-style:italic;color:rgb(64, 128, 128);"><font face="Consolas"># create a new 'Text'</font></span></p>
<pre style=""><font face="Consolas">text1 <span style="color:rgb(102, 102, 102);">=</span> Text()</font></pre>
<pre style=""><font face="Consolas"><br></font></pre>
<pre style=""><span style="font-style:italic;color:rgb(64, 128, 128);"><font face="Consolas"># Properties modified on text1</font></span></pre>
<pre style=""><font face="Consolas">text1<span style="color:rgb(102, 102, 102);">.</span>Text <span style="color:rgb(102, 102, 102);">=</span> <span style="color:rgb(186, 33, 33);">'my paraview script'</span></font></pre>
<pre style="color:rgb(186, 33, 33);"><font face="Consolas"><br></font></pre>
<pre style=""><span style="font-style:italic;color:rgb(64, 128, 128);"><font face="Consolas"># get active view</font></span></pre>
<pre style=""><font face="Consolas">renderView1 <span style="color:rgb(102, 102, 102);">=</span> GetActiveViewOrCreate(<span style="color:rgb(186, 33, 33);">'RenderView'</span>)</font></pre>
<pre style=""><span style="font-style:italic;color:rgb(64, 128, 128);"><font face="Consolas"># uncomment following to set a specific view size</font></span></pre>
<pre style=""><span style="font-style:italic;color:rgb(64, 128, 128);"><font face="Consolas"># renderView1.ViewSize = [856, 589]</font></span></pre>
<pre style="font-style:italic;color:rgb(64, 128, 128);"><font face="Consolas"><br></font></pre>
<pre style=""><span style="font-style:italic;color:rgb(64, 128, 128);"><font face="Consolas"># show data in view</font></span></pre>
<pre style=""><font face="Consolas">text1Display <span style="color:rgb(102, 102, 102);">=</span> Show(text1, renderView1)</font></pre>
<pre style="font-family:'Courier New,courier';"><br></pre>
</div>
<div style="font-family:Calibri, sans-serif;"><br>
</div>
<div style="font-family:Calibri, sans-serif;">-Ken</div>
<div style="font-family:Calibri, sans-serif;"><br>
</div>
<span id="ecxOLK_SRC_BODY_SECTION" style="font-family:Calibri, sans-serif;">
<div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt;">
<span style="font-weight:bold;">From: </span>"Madalena S. Malhadas" <<a href="mailto:nenasantos@hotmail.com">nenasantos@hotmail.com</a>><br>
<span style="font-weight:bold;">Date: </span>Thursday, February 26, 2015 at 10:34 AM<br>
<span style="font-weight:bold;">To: </span>Jeff Becker <<a href="mailto:jeffrey.c.becker@nasa.gov">jeffrey.c.becker@nasa.gov</a>>, Utkarsh Ayachit <<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>><br>
<span style="font-weight:bold;">Cc: </span>ParaView <<a href="mailto:paraview@paraview.org">paraview@paraview.org</a>><br>
<span style="font-weight:bold;">Subject: </span>[EXTERNAL] [Paraview] Insert text source into view in a script<br>
</div>
<div><br>
</div>
<div><style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style>
<div class="ecxhmmessage">
<div dir="ltr">How i can include a text source, for example a title (e.g., "my paraview script") into a view in a paraview scrip?
<div><br>
</div>
<div>Kind regards</div>
<div>Madalena</div>
</div>
</div>
</div>
</span></div></div> </div></body>
</html>