How to remove NthDataNode from a vtkMRMLSequenceNode?

Hi everyone,

I am working on the scripted module development, trying to edit the vtkMRMLSequenceNode.
However, did not find any functions like RemoveNthDataNode().

How could I remove the NthDataNode?

Thank you very much in advance!

You can use this method:

sequenceNode->RemoveDataNodeAtValue(sequenceNode->GetNthIndexValue(n));
1 Like

Thank you so much, Andras!