<HTML>
<HEAD>
<TITLE>Re: [Paraview] How to automatize some operations on ParaView</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>There is also a short Python tutorial in <I>The ParaView Tutorial</I> (<a href="http://www.paraview.org/Wiki/The_ParaView_Tutorial">http://www.paraview.org/Wiki/The_ParaView_Tutorial</a>) and there is &nbsp;somewhat more complete documentation on the Python scripting on the Wiki (<a href="http://www.paraview.org/Wiki/ParaView/Python_Scripting">http://www.paraview.org/Wiki/ParaView/Python_Scripting</a>).<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 12/23/09 10:51 AM, &quot;Scott, W Alan&quot; &lt;<a href="wascott@sandia.gov">wascott@sandia.gov</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><SPAN STYLE='font-size:11pt'><FONT COLOR="#0000FF"><FONT FACE="Arial">I added the Python Trace code to the Sandia tutorials. &nbsp;The tutorials are on the Kitware Wiki, here: &nbsp;<a href="http://www.paraview.org/Wiki/SNL_ParaView_3_Tutorials">http://www.paraview.org/Wiki/SNL_ParaView_3_Tutorials</a>. &nbsp;Then, open Advanced State Management.<BR>
</FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"> <BR>
</FONT><FONT COLOR="#0000FF"><FONT FACE="Arial">Alan<BR>
</FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><BR>
</FONT></SPAN><BLOCKQUOTE><SPAN STYLE='font-size:11pt'><FONT FACE="Calibri, Verdana, Helvetica, Arial"> <BR>
&nbsp;<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="100%"> </FONT><FONT FACE="Tahoma, Verdana, Helvetica, Arial"><B>From:</B> <a href="paraview-bounces@paraview.org">paraview-bounces@paraview.org</a> &nbsp;[<a href="mailto:paraview-bounces@paraview.org">mailto:paraview-bounces@paraview.org</a>] <B>On Behalf Of </B>myaccountmail9 &nbsp;myaccountmail9<BR>
<B>Sent:</B> Wednesday, December 23, 2009 12:52 &nbsp;AM<BR>
<B>To:</B> Moreland, Kenneth<BR>
<B>Cc:</B> &nbsp;<a href="paraview@paraview.org">paraview@paraview.org</a><BR>
<B>Subject:</B> Re: [Paraview] How to automatize some &nbsp;operations on ParaView<BR>
</FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><BR>
&nbsp;<BR>
Is there any tutorial about using Python script for &nbsp;it?<BR>
<BR>
Thank you<BR>
<BR>
<BR>
&nbsp;<BR>
2009/12/21 Moreland, Kenneth &lt;<a href="kmorel@sandia.gov">kmorel@sandia.gov</a>&gt;<BR>
&nbsp;<BR>
</FONT></SPAN><BLOCKQUOTE><SPAN STYLE='font-size:11pt'><FONT FACE="Calibri, Verdana, Helvetica, Arial"> <BR>
Luis,<BR>
<BR>
With the 3.6.2 release candidate and &nbsp;the latest CVS you can use the Python tracing to build a Python script that &nbsp;does the operation you wish. &nbsp;You can then edit the script if necessary &nbsp;and make a macro for it.<BR>
<BR>
One of the intentions of the Python &nbsp;tracing/macro capability is to make creating solutions to these repetitive &nbsp;processes easy. &nbsp;If you try this, let us know how it works for &nbsp;you.<BR>
<BR>
-Ken <BR>
&nbsp;<BR>
&nbsp;<BR>
<BR>
<BR>
<BR>
On 12/21/09 9:13 AM, &quot;myaccountmail9 &nbsp;myaccountmail9&quot; &lt;<a href="myaccountmail9@gmail.com">myaccountmail9@gmail.com</a> &lt;<a href="http://myaccountmail9@gmail.com">http://myaccountmail9@gmail.com</a>&gt; &gt; &nbsp;wrote:<BR>
<BR>
&nbsp;<BR>
</FONT></SPAN><BLOCKQUOTE><SPAN STYLE='font-size:11pt'><FONT FACE="Calibri, Verdana, Helvetica, Arial"> <BR>
&nbsp;<BR>
&nbsp;<BR>
Hi David, thank you very much.<BR>
Custom filter is &nbsp;useful but it doesn't seem to be exactly what we would.<BR>
In fact, with &nbsp;this filter we obtain the final result.<BR>
Instead, we would preserve in &nbsp;our pipeline all operation:<BR>
<BR>
1) slice<BR>
2) &nbsp;contours<BR>
3)...<BR>
<BR>
Can anyone help us?<BR>
Thank &nbsp;you<BR>
<BR>
<BR>
2009/12/21 David Doria &lt;<a href="daviddoria@gmail.com">daviddoria@gmail.com</a> &lt;<a href="http://daviddoria@gmail.com">http://daviddoria@gmail.com</a>&gt; &gt;<BR>
&nbsp;<BR>
</FONT></SPAN><BLOCKQUOTE><SPAN STYLE='font-size:11pt'><FONT FACE="Calibri, Verdana, Helvetica, Arial"> <BR>
&nbsp;<BR>
&nbsp;<BR>
On Mon, Dec 21, 2009 at 10:23 AM, myaccountmail9 &nbsp;myaccountmail9 &lt;<a href="myaccountmail9@gmail.com">myaccountmail9@gmail.com</a> &lt;<a href="http://myaccountmail9@gmail.com">http://myaccountmail9@gmail.com</a>&gt; &gt; wrote:<BR>
&nbsp;<BR>
</FONT></SPAN><BLOCKQUOTE><SPAN STYLE='font-size:11pt'><FONT FACE="Calibri, Verdana, Helvetica, Arial">Hi all,<BR>
could you please explain the way to &nbsp;automatize a sequence of operations?<BR>
<BR>
For example, suppose I &nbsp;always have to apply on every input:<BR>
<BR>
1) slice filter (with some &nbsp;plane...)<BR>
2) contour filter (on some variable, with some values &nbsp;interval...)<BR>
<BR>
We would like to apply automatically these two &nbsp;operations after loading a generic input file.<BR>
W tried to use File &nbsp;-&gt; Save state, but this saves the sequence and the input, and we &nbsp;won't the input.<BR>
<BR>
Thank &nbsp;you<BR>
Luis<BR>
<BR>
_______________________________________________<BR>
<BR>
</FONT></SPAN></BLOCKQUOTE><SPAN STYLE='font-size:11pt'><FONT FACE="Calibri, Verdana, Helvetica, Arial"> <BR>
&nbsp;<BR>
&nbsp;<BR>
I believe you are looking for custom filters?<BR>
<a href="http://www.cmake.org/Wiki/Custom_Filters">http://www.cmake.org/Wiki/Custom_Filters</a><BR>
<BR>
Thanks,<BR>
<BR>
David &nbsp;<BR>
<BR>
<BR>
_______________________________________________<BR>
Powered &nbsp;by www.kitware.com &lt;<a href="http://www.kitware.com">http://www.kitware.com</a>&gt; &nbsp;&nbsp;&lt;<a href="http://www.kitware.com">http://www.kitware.com</a>&gt; <BR>
&nbsp;<BR>
<BR>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><BR>
<BR>
Please &nbsp;keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><BR>
<BR>
Follow this &nbsp;link to subscribe/unsubscribe:<BR>
<a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><BR>
<BR>
</FONT></SPAN></BLOCKQUOTE><SPAN STYLE='font-size:11pt'><FONT FACE="Calibri, Verdana, Helvetica, Arial"><BR>
<BR>
</FONT></SPAN></BLOCKQUOTE><SPAN STYLE='font-size:11pt'><FONT FACE="Calibri, Verdana, Helvetica, Arial"><BR>
</FONT></SPAN><FONT SIZE="1"><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:7pt'><BR>
&nbsp;&nbsp;&nbsp;**** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kenneth &nbsp;Moreland<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sandia &nbsp;National Laboratories<BR>
*********** &nbsp;<BR>
*** *** *** &nbsp;email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a> &lt;<a href="http://kmorel@sandia.gov">http://kmorel@sandia.gov</a>&gt; <BR>
** &nbsp;&nbsp;*** &nbsp;** &nbsp;phone: (505) &nbsp;844-8919<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;web: &nbsp;&nbsp;&nbsp;<a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a> &lt;<a href="http://www.cs.unm.edu/%7Ekmorel">http://www.cs.unm.edu/%7Ekmorel</a>&gt; <BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="1"><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:7.5pt'><BR>
&nbsp;&nbsp;&nbsp;**** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kenneth Moreland<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sandia National Laboratories<BR>
*********** &nbsp;<BR>
*** *** *** &nbsp;email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** &nbsp;*** &nbsp;** &nbsp;phone: (505) 844-8919<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;web: &nbsp;&nbsp;<a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>