# Export Sphere Clip Coordinates

**URL:** https://discourse.paraview.org/t/export-sphere-clip-coordinates/4421
**Category:** ParaView Support
**Tags:** python
**Created:** [May 26, 2020, 10:30pm UTC](https://discourse.paraview.org/t/export-sphere-clip-coordinates/4421 "2020-05-26T22:30:33Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Resa](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/94ad74/32.png) [@Resa](https://discourse.paraview.org/u/Resa)
#### Post date: [May 26, 2020, 10:30pm UTC](https://discourse.paraview.org/t/export-sphere-clip-coordinates/4421/1 "2020-05-26T22:30:33Z")

</div>

I applied sphere clips on a polygonal mesh. Now I’d like to get a csv document containing the coordinates/Centers of the spheres.

In the Python Shell you geht the values through this command:

```
center = myObject.ClipType.Center
print center

```

I guess in order to create a list of all coordinates i would need to create a programmable Filter. How can I address the sphere center inside of the programmable Filter?

`myObject.GetDataInformation().GetCenter()` is wrong.

---

<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: [May 27, 2020, 1:25am UTC](https://discourse.paraview.org/t/export-sphere-clip-coordinates/4421/3 "2020-05-27T01:25:57Z")

</div>

The most easy here may just to write the centers from the python shell.

---

<div class="post-metadata">

### Author: ![Resa](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/94ad74/32.png) [@Resa](https://discourse.paraview.org/u/Resa)
#### Post date: [May 27, 2020, 11:07am UTC](https://discourse.paraview.org/t/export-sphere-clip-coordinates/4421/4 "2020-05-27T11:07:21Z")

</div>

That would work, but I’d prefer to solve it with a programmable filter, so that i can put it together with all the other values in one table straight away.

Do you know how to reference the Sphere clip from inside of the programmable filter?

---

<div class="post-metadata">

### Author: ![Resa](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/94ad74/32.png) [@Resa](https://discourse.paraview.org/u/Resa)
#### Post date: [May 27, 2020, 11:27am UTC](https://discourse.paraview.org/t/export-sphere-clip-coordinates/4421/5 "2020-05-27T11:27:58Z")

</div>

How can you access another filter in the pipeline from inside of a programmable filter?

---

<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: [May 27, 2020, 12:14pm UTC](https://discourse.paraview.org/t/export-sphere-clip-coordinates/4421/6 "2020-05-27T12:14:13Z")

</div>

Sorry, but you can’t. You would basically need to recompute the center of each sphere.

---

<div class="post-metadata">

### Author: ![Resa](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/94ad74/32.png) [@Resa](https://discourse.paraview.org/u/Resa)
#### Post date: [May 27, 2020, 12:25pm UTC](https://discourse.paraview.org/t/export-sphere-clip-coordinates/4421/7 "2020-05-27T12:25:10Z")

</div>

Not even by using multiple input connections?

---

<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: [May 28, 2020, 2:23am UTC](https://discourse.paraview.org/t/export-sphere-clip-coordinates/4421/8 "2020-05-28T02:23:26Z")

</div>

The sphere center information is present in two location :

1. Client side, in the property of the sphere clip proxy, which you can access from pvpython (or any client side code)

2. Server side, in the member of the VTK class doing the clip, which can be accessed from within this filter only

Your programmable filter is running server side, in a different filter, so doesn’t have access to 1. nor 2.
