# Which proxy is a current proxy?

**URL:** https://discourse.paraview.org/t/which-proxy-is-a-current-proxy/15827
**Category:** Development
**Created:** [December 3, 2024, 9:37am UTC](https://discourse.paraview.org/t/which-proxy-is-a-current-proxy/15827 "2024-12-03T09:37:19Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![joint](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joint](https://discourse.paraview.org/u/joint)
#### Post date: [December 3, 2024, 9:37am UTC](https://discourse.paraview.org/t/which-proxy-is-a-current-proxy/15827/1 "2024-12-03T09:37:19Z")

</div>

Hello, dear ParaView developers!

Explain me please, which proxy is considered a current? Is it always a filter, which was accessed last and is selected in the pq in the left of paraview menu, active element of the pipeline?

Thanks you!

---

<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: [December 3, 2024, 9:41am UTC](https://discourse.paraview.org/t/which-proxy-is-a-current-proxy/15827/2 "2024-12-03T09:41:31Z")

</div>

> [@joint](#):
>
> which proxy is considered a current?

You mean active ?

> Is it always a filter, which was accessed last and is selected in the pq in the left of paraview menu, active element of the pipeline?

There is a concept of ActiveSource, ActiveView and ActiveRepresentation.

The ActiveSource is indeed the selected filter in the pipeline browser, but it can be controlled programmatically too.

[https://docs.paraview.org/en/latest/UsersGuide/filteringData.html](https://docs.paraview.org/en/latest/UsersGuide/filteringData.html)

[https://www.paraview.org/paraview-docs/latest/cxx/classpqActiveObjects.html](https://www.paraview.org/paraview-docs/latest/cxx/classpqActiveObjects.html)

---

<div class="post-metadata">

### Author: ![joint](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joint](https://discourse.paraview.org/u/joint)
#### Post date: [December 3, 2024, 9:42am UTC](https://discourse.paraview.org/t/which-proxy-is-a-current-proxy/15827/3 "2024-12-03T09:42:11Z")

</div>

I am not sure whether the active is the came is current  
`pqActiveObjects::instance().activeSourcesSelectionModel()->GetCurrentProxy();`

---

<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: [December 3, 2024, 9:54am UTC](https://discourse.paraview.org/t/which-proxy-is-a-current-proxy/15827/4 "2024-12-03T09:54:39Z")

</div>

I think this is the same, but you may want to check the code to be sure.

---

<div class="post-metadata">

### Author: ![joint](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joint](https://discourse.paraview.org/u/joint)
#### Post date: [December 3, 2024, 9:55am UTC](https://discourse.paraview.org/t/which-proxy-is-a-current-proxy/15827/5 "2024-12-03T09:55:15Z")

</div>

Thank you a lot!
