<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transational//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
</HEAD>
<BODY>Thanks for the script, but how can I now access the data that were found by ProbeLocation? How can I put them in a variable, print them on the screen?<br><br>Cheers,<br>Mc Fly<br><br><br><br><br>---- Message d'origine ----<br>
De : "Armin Wehrfritz" <dkxls23@gmail.com><br>
À : paraview@paraview.org<br>
Objet : Re: [Paraview] Probe location in a script<br>
Date : 02/07/2015 17:07:42 CEST<br>
<br>
Here is a little script that shows you how to read and write dataset in <br>
ParaView using a simple for loop.<br>
<br>
Hope this helps.<br>
<br>
-Armin<br>
<br>
<br>
<br>
<br>
On 07/02/2015 05:47 PM, mctolille@netcourrier.com wrote:<br>
> Thanks for the tip. I actually already used tracing in order to find the<br>
> command:<br>
>      Probelocation.ProbeType.Center = [10.0,20.0,30.0]<br>
><br>
> But the problem is that I don't know how to access to the data (rho, vx,<br>
> vy...) at that location in the python script<br>
><br>
> And since tracing does not capture "Save data", I don't even know how to<br>
> write the data in a file<br>
><br>
> Cheers,<br>
> Mc Fly<br>
><br>
><br>
><br>
><br>
> Date : 02/07/2015 15:55:04 CEST<br>
><br>
> Hi McFly,<br>
><br>
> The Python Tracing facility in ParaView is perfect for this kind of<br>
> task. It records a trace of your actions in the ParaView GUI to a Python<br>
> script that you can modify a bit to process a bunch of files. To turn on<br>
> tracing, choose the Tools -> Start Trace menu item.<br>
><br>
> More info on tracing is available in the ParaView User Guide [1] under<br>
> section 1.6.2.<br>
><br>
> Best regards,<br>
> Cory<br>
><br>
> [1] http://www.paraview.org/paraview-guide/<br>
><br>
> On Thu, Jul 2, 2015 at 9:39 AM, <mctolille@netcourrier.com<br>
> <mailto:mctolille@netcourrier.com>> wrote:<br>
><br>
>     __<br>
><br>
>     Hi everybody,<br>
><br>
>     I am a new Paraview user. I am trying to extract points from a bunch<br>
>     of vtu files. It is pretty easily done with "probe location". But<br>
>     since I have a lot of files, I would like to automatize the process<br>
>     (with a macro or a python script).<br>
><br>
>     Could someone maybe show me how it's done?<br>
><br>
>     My best guess is that I should have the following in a python script:<br>
>     Probelocation.ProbeType.Center = [10.0,20.0,30.0]<br>
>     assuming I want to probe at x=10, y=20, z=30. But then, I don't<br>
>     really know how to retrieve the variables values at that location.<br>
><br>
>     Thanks a lot,<br>
>     Mc Fly<br>
><br>
>     _______________________________________________<br>
>     Powered by www.kitware.com <http://www.kitware.com><br>
><br>
>     Visit other Kitware open-source projects at<br>
>     http://www.kitware.com/opensource/opensource.html<br>
><br>
>     Please keep messages on-topic and check the ParaView Wiki at:<br>
>     http://paraview.org/Wiki/ParaView<br>
><br>
>     Search the list archives at: http://markmail.org/search/?q=ParaView<br>
><br>
>     Follow this link to subscribe/unsubscribe:<br>
>     http://public.kitware.com/mailman/listinfo/paraview<br>
><br>
><br>
><br>
><br>
> --<br>
> Cory Quammen<br>
> R&D Engineer<br>
> Kitware, Inc.<br>
><br>
><br>
> _______________________________________________<br>
> Powered by www.kitware.com<br>
><br>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<br>
><br>
> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView<br>
><br>
> Search the list archives at: http://markmail.org/search/?q=ParaView<br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> http://public.kitware.com/mailman/listinfo/paraview<br>
><br>
<br>
_______________________________________________<br>
Powered by www.kitware.com<br>
<br>
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView<br>
<br>
Search the list archives at: http://markmail.org/search/?q=ParaView<br>
<br>
Follow this link to subscribe/unsubscribe:<br>
http://public.kitware.com/mailman/listinfo/paraview<br>
<br></BODY></HTML>