# Access Pipeline Browser Relationships

**URL:** https://discourse.paraview.org/t/access-pipeline-browser-relationships/6830
**Category:** ParaView Support
**Tags:** python
**Created:** [March 30, 2021, 7:22pm UTC](https://discourse.paraview.org/t/access-pipeline-browser-relationships/6830 "2021-03-30T19:22:33Z")
**Posts on this page:** 4
**Page:** 1

<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: [March 30, 2021, 7:22pm UTC](https://discourse.paraview.org/t/access-pipeline-browser-relationships/6830/1 "2021-03-30T19:22:33Z")

</div>

Say I have a pipeline setup as shown below.  
I would like to run a script that operates on all the branches/children of “Solid” individually.  
Is there a way to access those relationships so that I can generate handles to those sub-items, assuming I already have a handle to “Solid”?

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

---

<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: [March 30, 2021, 10:06pm UTC](https://discourse.paraview.org/t/access-pipeline-browser-relationships/6830/2 "2021-03-30T22:06:33Z")

</div>

You need to check if each of the sources in the pipeline have an input that is solid. Not really practical.

---

<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: [March 31, 2021, 4:18am UTC](https://discourse.paraview.org/t/access-pipeline-browser-relationships/6830/3 "2021-03-31T04:18:17Z")

</div>

In Python, you can write

```python
solid = FindSource('Solid')
children = [c for c in GetSources().values() if c.GetProperty('Input') and c.GetProperty('Input') == solid]

```

This should work in most simple cases.

---

<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: [March 31, 2021, 1:43pm UTC](https://discourse.paraview.org/t/access-pipeline-browser-relationships/6830/4 "2021-03-31T13:43:17Z")

</div>

I was hoping for direct access to the tree, but I suppose that’s not exposed because it’s a QT thing.

Not pretty but I can check the input of each source as recommended.

Thanks guys.
