# Proxy modified state is different in Python

**URL:** https://discourse.paraview.org/t/proxy-modified-state-is-different-in-python/17055
**Category:** Development
**Created:** [August 8, 2025, 2:53pm UTC](https://discourse.paraview.org/t/proxy-modified-state-is-different-in-python/17055 "2025-08-08T14:53:44Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![jeDuck](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/898d66/32.png) [@jeDuck](https://discourse.paraview.org/u/jeDuck)
#### Post date: [August 8, 2025, 2:53pm UTC](https://discourse.paraview.org/t/proxy-modified-state-is-different-in-python/17055/1 "2025-08-08T14:53:45Z")

</div>

Hello! When I open some model and create a filter on it (Clip, for example), the modified state on Clip proxy in pqFiltersMenuReaction is UNINITIALIZED. However, when I do the same in Python,

reader = OpenDataFile(‘myfile.pvd’)  
filter = Clip(reader)

The modified state is UNMODIFIED. Is that an expected behaviour? Why is the state different in Python?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [August 8, 2025, 3:53pm UTC](https://discourse.paraview.org/t/proxy-modified-state-is-different-in-python/17055/2 "2025-08-08T15:53:24Z")

</div>

Is the `UNINITIALIZED` before you hit `Apply` in the UI? I suspect the API (C++ too) might be doing auto-Apply.

---

<div class="post-metadata">

### Author: ![jeDuck](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/898d66/32.png) [@jeDuck](https://discourse.paraview.org/u/jeDuck)
#### Post date: [August 8, 2025, 5:06pm UTC](https://discourse.paraview.org/t/proxy-modified-state-is-different-in-python/17055/3 "2025-08-08T17:06:08Z")

</div>

Yes, UNINITIALIZED is before hitting the Apply button. The auto-apply button is off, the request data method of the filter is not being called neither in paraview, nor in the python shell. I noticed that UNMODIFIED status is the default value in pqProxy constructor and the UNINITIALIZED status in Paraview is being set by pqObjectBuilder::create\_filter, however it doesn’t seem to get called via Python shell

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [October 20, 2025, 11:20am UTC](https://discourse.paraview.org/t/proxy-modified-state-is-different-in-python/17055/4 "2025-10-20T11:20:59Z")

</div>

@cory.quammen ?

---

<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: [October 20, 2025, 11:40am UTC](https://discourse.paraview.org/t/proxy-modified-state-is-different-in-python/17055/5 "2025-10-20T11:40:20Z")

</div>

FYI @nicolas.vuaille

---

<div class="post-metadata">

### Author: ![nicolas.vuaille](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicolas.vuaille/32/5873_2.png) [@nicolas.vuaille](https://discourse.paraview.org/u/nicolas.vuaille)
#### Post date: [October 21, 2025, 7:06am UTC](https://discourse.paraview.org/t/proxy-modified-state-is-different-in-python/17055/6 "2025-10-21T07:06:27Z")

</div>

Indeed, from what I see the `modifiedState` is changed only when clicking on buttons (apply, reset, changing property value). But nothing connects Python to it. So I feel like it was designed only for GUI interactions.

Another way to see that:

- Source / Sphere
- Apply
- Turn on “advanced properties”
- Python Shell
  - s=GetActiveSource()
  - s.StartTheta = 90

`Start Theta` is up to date in the Properties panel but the Apply button is disabled and the View was not updated. So nothing says that a change is “pending”.

I think it is an issue. @jeDuck would you mind create a ticket here [https://gitlab.kitware.com/paraview/paraview/-/issues?sort=created\_date&state=opened&first\_page\_size=50](https://gitlab.kitware.com/paraview/paraview/-/issues?sort=created_date&state=opened&first_page_size=50) ?

---

<div class="post-metadata">

### Author: ![jeDuck](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/898d66/32.png) [@jeDuck](https://discourse.paraview.org/u/jeDuck)
#### Post date: [October 21, 2025, 12:25pm UTC](https://discourse.paraview.org/t/proxy-modified-state-is-different-in-python/17055/7 "2025-10-21T12:25:55Z")

</div>

Here is the ticket:

[https://gitlab.kitware.com/paraview/paraview/-/issues/23133](https://gitlab.kitware.com/paraview/paraview/-/issues/23133)
