<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 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, "Scott, W Alan" <<a href="wascott@sandia.gov">wascott@sandia.gov</a>> 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. The tutorials are on the Kitware Wiki, here: <a href="http://www.paraview.org/Wiki/SNL_ParaView_3_Tutorials">http://www.paraview.org/Wiki/SNL_ParaView_3_Tutorials</a>. 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>
<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> [<a href="mailto:paraview-bounces@paraview.org">mailto:paraview-bounces@paraview.org</a>] <B>On Behalf Of </B>myaccountmail9 myaccountmail9<BR>
<B>Sent:</B> Wednesday, December 23, 2009 12:52 AM<BR>
<B>To:</B> Moreland, Kenneth<BR>
<B>Cc:</B> <a href="paraview@paraview.org">paraview@paraview.org</a><BR>
<B>Subject:</B> Re: [Paraview] How to automatize some operations on ParaView<BR>
</FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><BR>
<BR>
Is there any tutorial about using Python script for it?<BR>
<BR>
Thank you<BR>
<BR>
<BR>
<BR>
2009/12/21 Moreland, Kenneth <<a href="kmorel@sandia.gov">kmorel@sandia.gov</a>><BR>
<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 the latest CVS you can use the Python tracing to build a Python script that does the operation you wish. You can then edit the script if necessary and make a macro for it.<BR>
<BR>
One of the intentions of the Python tracing/macro capability is to make creating solutions to these repetitive processes easy. If you try this, let us know how it works for you.<BR>
<BR>
-Ken <BR>
<BR>
<BR>
<BR>
<BR>
<BR>
On 12/21/09 9:13 AM, "myaccountmail9 myaccountmail9" <<a href="myaccountmail9@gmail.com">myaccountmail9@gmail.com</a> <<a href="http://myaccountmail9@gmail.com">http://myaccountmail9@gmail.com</a>> > wrote:<BR>
<BR>
<BR>
</FONT></SPAN><BLOCKQUOTE><SPAN STYLE='font-size:11pt'><FONT FACE="Calibri, Verdana, Helvetica, Arial"> <BR>
<BR>
<BR>
Hi David, thank you very much.<BR>
Custom filter is useful but it doesn't seem to be exactly what we would.<BR>
In fact, with this filter we obtain the final result.<BR>
Instead, we would preserve in our pipeline all operation:<BR>
<BR>
1) slice<BR>
2) contours<BR>
3)...<BR>
<BR>
Can anyone help us?<BR>
Thank you<BR>
<BR>
<BR>
2009/12/21 David Doria <<a href="daviddoria@gmail.com">daviddoria@gmail.com</a> <<a href="http://daviddoria@gmail.com">http://daviddoria@gmail.com</a>> ><BR>
<BR>
</FONT></SPAN><BLOCKQUOTE><SPAN STYLE='font-size:11pt'><FONT FACE="Calibri, Verdana, Helvetica, Arial"> <BR>
<BR>
<BR>
On Mon, Dec 21, 2009 at 10:23 AM, myaccountmail9 myaccountmail9 <<a href="myaccountmail9@gmail.com">myaccountmail9@gmail.com</a> <<a href="http://myaccountmail9@gmail.com">http://myaccountmail9@gmail.com</a>> > wrote:<BR>
<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 automatize a sequence of operations?<BR>
<BR>
For example, suppose I always have to apply on every input:<BR>
<BR>
1) slice filter (with some plane...)<BR>
2) contour filter (on some variable, with some values interval...)<BR>
<BR>
We would like to apply automatically these two operations after loading a generic input file.<BR>
W tried to use File -> Save state, but this saves the sequence and the input, and we won't the input.<BR>
<BR>
Thank you<BR>
Luis<BR>
<BR>
_______________________________________________<BR>
<BR>
</FONT></SPAN></BLOCKQUOTE><SPAN STYLE='font-size:11pt'><FONT FACE="Calibri, Verdana, Helvetica, Arial"> <BR>
<BR>
<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 <BR>
<BR>
<BR>
_______________________________________________<BR>
Powered by www.kitware.com <<a href="http://www.kitware.com">http://www.kitware.com</a>> <<a href="http://www.kitware.com">http://www.kitware.com</a>> <BR>
<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 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 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>
**** Kenneth Moreland<BR>
*** Sandia National Laboratories<BR>
*********** <BR>
*** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a> <<a href="http://kmorel@sandia.gov">http://kmorel@sandia.gov</a>> <BR>
** *** ** phone: (505) 844-8919<BR>
*** web: <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a> <<a href="http://www.cs.unm.edu/%7Ekmorel">http://www.cs.unm.edu/%7Ekmorel</a>> <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>
**** Kenneth Moreland<BR>
*** Sandia National Laboratories<BR>
*********** <BR>
*** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** *** ** phone: (505) 844-8919<BR>
*** web: <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>