# using "find data" aka "extract selection" with python scripting

**URL:** https://discourse.paraview.org/t/using-find-data-aka-extract-selection-with-python-scripting/562
**Category:** ParaView Support
**Tags:** python
**Created:** [September 12, 2018, 9:41am UTC](https://discourse.paraview.org/t/using-find-data-aka-extract-selection-with-python-scripting/562 "2018-09-12T09:41:59Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![J\_R-J](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@J\_R-J](https://discourse.paraview.org/u/J_R-J)
#### Post date: [October 1, 2018, 10:48am UTC](https://discourse.paraview.org/t/using-find-data-aka-extract-selection-with-python-scripting/562/5 "2018-10-01T10:48:54Z")

</div>

In case someone needs this in the future: (this works with the above code)

```
polyData = vtk.vtkPolyData()
polyData = reader.GetOutput()

coordinates = []
for i in range(polyData.GetNumberOfPoints()):
	coordinates.append(polyData.GetPoint(i))

```

will create a list of coordinates for each point

based on: [https://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataGetPoint](https://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataGetPoint)

---

_[View the full topic](https://discourse.paraview.org/t/using-find-data-aka-extract-selection-with-python-scripting/562)._
