I was trying to get all the children of a folder in the subject hierarchy node using the convenience method slicer.mrmlScene.GetSubjectHierarchyNode. It didn’t work and I got the error:
- NameError: name ‘slicer’ is not defined
Inspecting Slicer’s repo (I think this is the place to look in, but I’m not sure: Slicer/util.py at 1807944b939b81145ec2a049ef088e0d59d5039f · Slicer/Slicer · GitHub) I found which is, perhaps, the problem. It seems like that function is lacking the “import slicer” statement.
I’m relatively new to slicer so I’m not sure if this is correct. If it is, is there something I can do to patch it up? If not, could you please show me how to use this function?
Thank you very much in advance for your answers! Cheers,