How to correctly register a callback for MRML node removal (specifically vtkMRMLModelNode
and vtkMRMLMarkupsFiducialNode
) in python scripted module?
You can observe vtkMRMLScene.NodeAboutToBeRemoved event. See an example how to observe a scene event in the script repository.
1 Like