I’m looking to retrieve every sequence browser names using python. Considering I have multiple sequence browser :
I would like to retrieve an array containing : SequenceBrowser_1, SequenceBrowser_2, etc
I’m not sure which API to use.
I’ve been looking into the api of vtkMRMLSequenceBrowserNode,
I’m now trying to retrieve the sequence nodes associated with the sequence browser.
E.g:
I want to retrieve ThorasicSeq_1_Scans and ThorasicSeq_1_Tracker, do you know a way to do it?
I’m able to retrieve ThorasicSeq_1_Scans by using GetMasterSequenceNode but how do I retrieve every sequence nodes of the current SequenceBrowser?
collection = vtk.vtkCollection()
sequenceBrowserNode.GetSynchronizedSequenceNodes(collection, True)
for i in range(collection.GetNumberOfItems()):
sequenceNode = collection.GetItemAsObject(i)