# spline source points into python macro script

**URL:** https://discourse.paraview.org/t/spline-source-points-into-python-macro-script/2625
**Category:** ParaView Support
**Created:** [September 25, 2019, 6:40pm UTC](https://discourse.paraview.org/t/spline-source-points-into-python-macro-script/2625 "2019-09-25T18:40:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![garcfd](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/ccd318/32.png) [@garcfd](https://discourse.paraview.org/u/garcfd)
#### Post date: [September 25, 2019, 6:40pm UTC](https://discourse.paraview.org/t/spline-source-points-into-python-macro-script/2625/1 "2019-09-25T18:40:06Z")

</div>

I want to use use the GUI to create some splines sources (placing the points by hand)  
Then I want to be able to access those spline point coordinates in the python script macro.  
How do I do this - is it even possible? Thanks Giles

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [September 25, 2019, 8:15pm UTC](https://discourse.paraview.org/t/spline-source-points-into-python-macro-script/2625/2 "2019-09-25T20:15:56Z")

</div>

It is possible. Assuming you have a reference to the spline source, you can retrieve the points with

```python
splineSource.ParametricFunction.Points

```

You can set these points with

```python
splineSource.ParametricFunction.Points = [x1, y2, z1, ...]

```

You may find it useful to know that you can find out how to do this by using the _Tools_ -\> _Start Trace_ menu item and changing the spline points, stopping the trace (_Tools_ -\> _Stop Trace_), and looking at the resulting Python.

---

<div class="post-metadata">

### Author: ![garcfd](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/ccd318/32.png) [@garcfd](https://discourse.paraview.org/u/garcfd)
#### Post date: [September 25, 2019, 9:12pm UTC](https://discourse.paraview.org/t/spline-source-points-into-python-macro-script/2625/3 "2019-09-25T21:12:30Z")

</div>

thats great - and thanks also for the reminder about using the Trace feature

---

<div class="post-metadata">

### Author: ![garcfd](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/ccd318/32.png) [@garcfd](https://discourse.paraview.org/u/garcfd)
#### Post date: [September 25, 2019, 10:06pm UTC](https://discourse.paraview.org/t/spline-source-points-into-python-macro-script/2625/4 "2019-09-25T22:06:34Z")

</div>

I found this works for me (in version 4.3.1)

splineSource1 = FindSource(‘SplineSource1’)  
pts1 = splineSource1.ParametricFunction.GetProperty(“Points”)  
print pts1
