# Getting coordinates of selected point in python

**URL:** https://discourse.paraview.org/t/getting-coordinates-of-selected-point-in-python/8323
**Category:** ParaView Support
**Tags:** python
**Created:** [November 4, 2021, 2:55pm UTC](https://discourse.paraview.org/t/getting-coordinates-of-selected-point-in-python/8323 "2021-11-04T14:55:33Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Rinaldo](https://discourse.paraview.org/user_avatar/discourse.paraview.org/rinaldo/32/7872_2.png) [@Rinaldo](https://discourse.paraview.org/u/Rinaldo)
#### Post date: [November 4, 2021, 2:55pm UTC](https://discourse.paraview.org/t/getting-coordinates-of-selected-point-in-python/8323/1 "2021-11-04T14:55:33Z")

</div>

Hello,

I have now spent multiple hours going through every post on “getting point coordinates”, but to no avail.

I have a wavelet source on the surface of which I have selected a point using the GUI. Now I want to get the coordinates of the point in the python console.

 ![Untitled](https://discourse.paraview.org/uploads/default/original/2X/2/295537d9e45ed64bd55c93dfbd49811fa9d827dc.png)

I do not understand how it is possible to access some of the properties of the selection, such as the node index(?) or anything remotely useful.

Thanks in advance.

---

<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: [November 4, 2021, 3:01pm UTC](https://discourse.paraview.org/t/getting-coordinates-of-selected-point-in-python/8323/2 "2021-11-04T15:01:19Z")

</div>

```auto
es = ExtractSelection()
dataset = servermanager.Fetch(es)
dataset.GetPoints().GetPoint(0)

```

---

<div class="post-metadata">

### Author: ![theodorebaltis](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/e480ec/32.png) [@theodorebaltis](https://discourse.paraview.org/u/theodorebaltis)
#### Post date: [November 4, 2021, 3:01pm UTC](https://discourse.paraview.org/t/getting-coordinates-of-selected-point-in-python/8323/3 "2021-11-04T15:01:56Z")

</div>

Add another Layout/View and use **SpreadSheetView**  
Looks like you already have a point selected so go to the spreadsheet and select **Show only selected elements** (red highlight in the pic)

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

EDIT: My apologies. I didn’t see the part about “Python Console”. I guess I’ll leave this here as an alternative.
