Changing the name of the fiducial and getting the updated names of the fiducial

Hi is there a way to print out the updated fiducials list even if I rename it from (‘F’) to something else? Right now I have to hardcode the names of my fiducials into .getNode() but was wondering if there is a better alternative way.


Based on your description it’s hard to know what you want to do with the fiducials and whether you want to use a certain fiducial node or all of them. Some more information would be quite useful.

Normally one creates a fiducial node from the module and then you can have control over it, for example you can add observers.

As you mention getNode by name, maybe it is useful to mention that you can get nodes by type. For example
collection = slicer.mrmlScene.GetNodesByClass('vtkMRMLMarkupsFiducialNode')
fiducialNodes = getNodes('vtkMRMLMarkupsFiducialNode*')

Ok, that works. Thanks!