# Start trace does not save my probe location selection

**URL:** https://discourse.paraview.org/t/start-trace-does-not-save-my-probe-location-selection/7962
**Category:** ParaView Support
**Created:** [September 9, 2021, 8:33am UTC](https://discourse.paraview.org/t/start-trace-does-not-save-my-probe-location-selection/7962 "2021-09-09T08:33:55Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![babouletatou](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/e5b9ba/32.png) [@babouletatou](https://discourse.paraview.org/u/babouletatou)
#### Post date: [September 9, 2021, 8:33am UTC](https://discourse.paraview.org/t/start-trace-does-not-save-my-probe-location-selection/7962/1 "2021-09-09T08:33:55Z")

</div>

Hi, so I would like to have some help about this problem:  
I’d like to create a macro which could give me the pressure using **probe location** , but even if during _start trace_ I do select the **probe location** point to give me the pressure over time, when I run the macro, paraview displays an empty graph because nothing is selected in the **PlotSelectionOverTime** filter.  
Thank’s for your help!

---

<div class="post-metadata">

### Author: ![babouletatou](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/e5b9ba/32.png) [@babouletatou](https://discourse.paraview.org/u/babouletatou)
#### Post date: [September 13, 2021, 9:28am UTC](https://discourse.paraview.org/t/start-trace-does-not-save-my-probe-location-selection/7962/2 "2021-09-13T09:28:21Z")

</div>

Up

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [September 14, 2021, 10:31am UTC](https://discourse.paraview.org/t/start-trace-does-not-save-my-probe-location-selection/7962/3 "2021-09-14T10:31:11Z")

</div>

please add clear steps to reproduce

---

<div class="post-metadata">

### Author: ![babouletatou](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/e5b9ba/32.png) [@babouletatou](https://discourse.paraview.org/u/babouletatou)
#### Post date: [September 14, 2021, 2:59pm UTC](https://discourse.paraview.org/t/start-trace-does-not-save-my-probe-location-selection/7962/5 "2021-09-14T14:59:58Z")

</div>

Ok, so:  
Firstly, I _Start Trace_,  
Then I open my dataset which is a group: data for each time step.  
I create a **probe location** and I select the point as follows:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/e/ed4d22c9f822c6ea3b26b8694e52f1f02b4945c1.png)

**→**

 ![image](https://discourse.paraview.org/uploads/default/original/2X/8/88c862b604a1d5b70c07dccf3228fe49494a9139.png)

Finally I **plot selection over time** and select the pressure.

The matter is that something appear when I do it manually but when I use the script thanks to the _Trace_, the selection of **plotselectionovertime** remains empty:  
_Manually_:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/8/8fb65a2cd9138e15ad19f27bc6ff7c1aae6581b7.png)

_With the trace_:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/5/5c0dc64b18b02b44cd5aa1219f81d233d011d468.png)

However I had a look on the script and a process ID (-1,0) is mentionned, so I don’t understand why it’s not selected at the end

Thanks for your help

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [September 14, 2021, 3:00pm UTC](https://discourse.paraview.org/t/start-trace-does-not-save-my-probe-location-selection/7962/6 "2021-09-14T15:00:22Z")

</div>

The trace seems to miss a CreateSelection python calls. You should be able to add it yourself in your python script.

---

<div class="post-metadata">

### Author: ![babouletatou](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/e5b9ba/32.png) [@babouletatou](https://discourse.paraview.org/u/babouletatou)
#### Post date: [September 14, 2021, 3:21pm UTC](https://discourse.paraview.org/t/start-trace-does-not-save-my-probe-location-selection/7962/7 "2021-09-14T15:21:10Z")

</div>

Thank you for your answer,  
I was looking for this function, but it seems like it doesn’t exist, either on the paraview documentation where I can’t find how it works or in paraview python shell (When I write CreateSe… it doesn’t suggest me anything).

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [September 15, 2021, 9:31am UTC](https://discourse.paraview.org/t/start-trace-does-not-save-my-probe-location-selection/7962/8 "2021-09-15T09:31:46Z")

</div>

[https://docs.paraview.org/en/latest/UsersGuide/selectingData.html#creating-selections-in-python](https://docs.paraview.org/en/latest/UsersGuide/selectingData.html#creating-selections-in-python)
