I have a python reader reading an HDF5 and I have added a property to allow to select which group of the HDF5 the user wants to read. However, since it may be complicated to know the correct path of the group, I have added a view which shows all the possible groups
I would like to know if there is a way to disable the checkboxes on the list. And even better, when selecting an element of the list, copying directly that string to the RootPath string.
Relevant code is here
from vtkmodules.vtkCommonCore import vtkDataArraySelection
arrayselection = vtkDataArraySelection()
for name in self.group_names:
# "StringInfo" and "String" demonstrate how one can add a selection widget
# that lets user choose a string from the list of strings.
return ["one", "two", "three"]
<Property name="StringInfo" function="StringInfo"/>
def SetString(self, value):
print("Setting ", value)
I was testing in Paraview 5.10, which comes from Archlinux repos, but I have also tested in 5.11, directly downloaded from the web, and the example you linked to gitlab fails to load also there. I have had to remove everything in the Source algorithm but the String and StringInfo stuff we are talking about to make it work.