Hi Cailen,
If I understood correctly, you always need to display only the names from the first level of hierarchy. In this case, it is possible to simplify the task. You can try to use vtkDataArraySelection object, where you load names (“Solid”, …). It is supported directly by decorator in Python plugin:
# Ability for users to choose blocks in GUI from multi-block dataset
@smproperty.dataarrayselection(name="Blocks")
def GetDataArraySelection(self):
return self._get_array_selection()
, so you will be able to see it’s GUI similarly to this:
and user will be able to check some blocks.
More details about plugin’s code for implementing vtkDataArraySelection you can find here: Custom Threshold filter with dropdown selection - #5 by pavel
Hope, this approach is suitable for you.
Best Regards,
Pavel