Custom filters issues when used in the Python shell
Using the Python shell to create custom filters raises a couple of issues:
- Using
Create Custom Filter...
does not add the new filter to the Python shell namespace. The filter is therefore not immediately available via the Python shell (it is necessary to close and reopen ParaView) - Creating a custom filter in the Python shell effectively adds it to the
Pipeline Browser
. However, the "eye" does not appear (although it can actually be clicked on). - Moreover, the
Apply
button is greyed out until an exposed property is modified.
This can be tested simply with the following steps:
- Create a
Box
source. - Select the
Box
source in thePipeline Browser
. - Click
Tools
->Create Custom Filter...
in the menu bar. - Input a name for the filter, e.g.
customBox
. - Click
Next
three times, thenFinish
. - Click
View
->Python Shell
in the menu bar. - Here, typing
customBox()
in the Python shell shows that the filter is not recognized. - Close and reopen ParaView, as well as the Python shell view.
- Create the custom filter in the Python shell with the command
customBox()
. - Here, the eye is missing and the
Apply
button is greyed out. - Clicking the "absent" eye actually work around the issue.
Edited by Mathieu Westphal (Kitware)