- You can get hierarchy visibility using this function: https://github.com/Slicer/Slicer/blob/master/Libs/MRML/Core/vtkMRMLFolderDisplayNode.h#L90
- You can call GetItemParent to traverse parents, see https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Subject_hierarchy
- SetItemParent, see https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Manipulate_subject_hierarchy_item
1 Like