information_only properties with a panel_visibility to default or advanced should be exposed in python
Since !3050 (merged), information_only properties can be shown in the UI.
These properties should be available in python as well without explicitely using prop.GetProperty("PropertyName")
but by using prop.PropertyName
Steps to reproduce :
- Open ParaView
- Tools -> Manage Plugin -> Load New -> PropertyWidgetsFilter.xml
- Wavelet, Apply
- MyPropertyWidget filter, Apply
- Remark the "Shrink Factor Information" widget
- View -> Python Shell
- a=GetActiveSource
- a.ShrinkFactorInformation
before fix :
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/home/glow/work/paraview/paraviewFirst/paraview_build/lib64/python3.7/site-packages/paraview/servermanager.py", line 490, in __getattr__
return getattr(self.SMProxy, name)
AttributeError: 'vtkPVServerManagerCorePython.vtkSMSourceProxy' object has no attribute 'ShrinkFactorInformation'
after fix :
0.5