I’m trying to write a compiled plugin based on python programmable filter (following the example in https://www.paraview.org/Wiki/Plugin_Tutorial:_Subclassing_PythonProgrammableFilter ) to build a reader of a specific hdf5 file.
This reader should have a GUI to choose with a slider an item in a numbered set of objects and the min-max of this slider should dinamically be set depending on the input file content.
I’ve already written the requestData python script that generates an unstructured grid item by reading one of the objects described in the input file by mean of an integer index passed to the script using a SetParameter command associated in the xml file with an IntVectorProperty.
To define the limits of the slider I use an IntRangeDomain specifier in the xml that points to another information_only IntVectorProperty with an associated command GetRange that is a method I’ve added to my new class derived from vtkPythonProgrammableFilter class (using the macro vtkGetVector2Macro) to retrieve a Range vector added as a private attribure to my class.
Everythng seems to be ok if I add a C++ RequestInformation function to populate my Range attribute, but my question is: is it possible to populate this attribute through a python RequestInformation script instead of a C++ function? It would be very preferable as with a few h5py lines I can retrieve needed values instead of using libhdf5 from C++ function.
I’ve tried to find a method from python script to access to my class attributes but I haven’t found a way.
I hope to have been clear enough. Thank you in advance for any help.