Does paraview filter automatically update its properties?

Hello!

Lets say I have a filter, with properties “a” and “b”, both ints
And for some values of “a”, “b” is fixed and set by filter.
For example, for a = 1, b is always 5

So, if i write from Python:

And then
f.a = 1 (here filter should define b itself, and )

f.b should be set to 5,
but will it be seen in filter before f.UpdatePropertyInformation() is explicitly called?

Are there any ways to make these updates automatically by specifying some commands in XML?

Thank you very much

If I understood correctly the sources, to achieve this, you need to

  1. Implement RequestInformation() routine with updating logic (where b is updated depending on a)
  2. Specify some hints (if supported) in .xml to notify to update b’s GUI when a changes
  3. Call UpdatePropertyInformation ..

I hope it helps. Please, double-check.

No, b should not be property. Or you can have a logic in your code to take b into account only if a is not 1.

@nenad-vujicic please avoid repeating incorrect answers.

1 Like

I sincerely apologize for giving incorrect answers. It was not intentional.

1 Like

No worries, thanks for the feedback :slight_smile: