Thanks Pat, that's what I was looking for. I'll attempt to get the new version running and try out that trace mechanism. Thanks,<br><br>Jon<br><br><div class="gmail_quote">On Sat, Aug 22, 2009 at 10:20 AM, pat marion <span dir="ltr"><<a href="mailto:pat.marion@kitware.com">pat.marion@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Jon,<br>
<br>
Yes, in fact there is a new feature in paraview called python trace<br>
that generates python scripts using the paraview python api (<br>
<a href="http://paraview.org/Wiki/ParaView/Python_Scripting" target="_blank">http://paraview.org/Wiki/ParaView/Python_Scripting</a> ) In order to get<br>
this feature you need to checkout the current development version of<br>
paraview from cvs. Paraview doesn't come with makefiles, instead we<br>
use CMake to generate makefiles. Instructions can be found here<br>
<a href="http://paraview.org/Wiki/ParaView:Build_And_Install" target="_blank">http://paraview.org/Wiki/ParaView:Build_And_Install</a> .<br>
<br>
Python trace is still a very new feature, but it works well for many<br>
basic tasks. It won't handle everything though. Instructions for<br>
using trace can be found on this page<br>
<a href="http://paraview.org/Wiki/Python_GUI_Tools" target="_blank">http://paraview.org/Wiki/Python_GUI_Tools</a> .<br>
<br>
When you reply remember to cc the paraview list too.<br>
<font color="#888888"><br>
Pat<br>
</font><div><div></div><div class="h5"><br>
On Sat, Aug 22, 2009 at 11:31 AM, Jonathan Murray<<a href="mailto:jcokemurray@gmail.com">jcokemurray@gmail.com</a>> wrote:<br>
> Pat,<br>
> I did manage to build paraview 3.6.1 using a makefile (supplied with the<br>
> OpenFOAM distribution that I am using) called makeParaView-python and<br>
> supplying a path to libpython2.5... That seems to have turned on both<br>
> embedded python and python testing.<br>
><br>
> I tried writing a test run to a python script and it appears to work.<br>
> However, it appears to produce code specific to manipulating the Paraview<br>
> GUI. I was sort of hoping for something that would record code that calls<br>
> the paraview data processing functions directly from python (like recording<br>
> VBA code macros for Excel). Does ParaView have any such capability? Thanks a<br>
> bunch!<br>
><br>
> Jon<br>
><br>
> On Fri, Aug 21, 2009 at 7:48 PM, Jonathan Murray <<a href="mailto:jcokemurray@gmail.com">jcokemurray@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Hi Pat,<br>
>> The version is 3.6.1 and I just downloaded the tar.gz with the binaries<br>
>> already for linux32 built from the paraview website. When I look at<br>
>> Help->About, I do see embedded python is on (and Tools->Python Shell works)<br>
>> but python testing is off. Is this something I need to rebuild from source<br>
>> to turn on?<br>
>><br>
>> Thanks,<br>
>><br>
>> Jon<br>
>><br>
>> On Fri, Aug 21, 2009 at 2:48 PM, pat marion <<a href="mailto:pat.marion@kitware.com">pat.marion@kitware.com</a>><br>
>> wrote:<br>
>>><br>
>>> Hi Jon,<br>
>>><br>
>>> Where did you install paraview from, and what version is it? If you<br>
>>> go to Help --> About, there should be a box called Client Information<br>
>>> that will tell you if embedded python and python testing is enabled or<br>
>>> not. Some versions of paraview are built without python, maybe yours<br>
>>> falls into this category.<br>
>>><br>
>>> Pat<br>
>>><br>
>>> On Fri, Aug 21, 2009 at 4:30 PM, Jonathan Murray<<a href="mailto:jcokemurray@gmail.com">jcokemurray@gmail.com</a>><br>
>>> wrote:<br>
>>> > Hi all,<br>
>>> > I am new to ParaView (and this mailing list) and I'm interested in the<br>
>>> > ability to automate Paraview operations with python scripts. I noticed<br>
>>> > in<br>
>>> > the online documentation that the "Record Test" function should allow<br>
>>> > one to<br>
>>> > produce XML or python scripts for a recorded set of actions performed<br>
>>> > in the<br>
>>> > GUI. However, in my installation, I only have the option of recording<br>
>>> > XML,<br>
>>> > it appears. Does anyone know if the python recording capability is<br>
>>> > implemented, or is it still on the way? Thanks,<br>
>>> ><br>
>>> > Jon<br>
>>> ><br>
>>> > _______________________________________________<br>
>>> > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>>> ><br>
>>> > Visit other Kitware open-source projects at<br>
>>> > <a 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:<br>
>>> > <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
>>> ><br>
>>> > Follow this link to subscribe/unsubscribe:<br>
>>> > <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
>>> ><br>
>>> ><br>
>><br>
><br>
><br>
</div></div></blockquote></div><br>