I Would like to show only ““vtkMRMLMarkupsFiducialNode”” in my SubjectHierarchyTreeView widget.
I manage to hide the majority of node types thanks to this snipet
self.shFiducialTreeView = slicer.qMRMLSubjectHierarchyTreeView() self.shFiducialTreeView.nodeTypes = ["vtkMRMLMarkupsFiducialNode"] self.shFiducialTreeView.setShowRootItem(False) self.shFiducialTreeView.setMRMLScene(slicer.mrmlScene)
But as you can some folder Nodes are still showing :
Do you have a solution for this issue ? what am i doing wrong ?
Thanks a lot