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,
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
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”.