How to dynamically update the StringName of ParameterNode?

Hi Andras,

Thank you so much for your help!

I found the attribute “selectedItemNumber” from vtkMRMLSequenceBrowserNode in the scene file, which solved my problem.
As you can see in the screenshot below, I am now able to retrieve SequenceBrowser and show the FrameIndex in my own module, and I should also be able to do offline annotation now.

image

However, it might be impossible for me to complete a new “Sequences” module for the new sequence recording, and it seems that the existing “Sequences” module does not support PyQt5 script source code.

What should I do to make the annotation online?
E.g., after I click the recording button in the “Sequences” module to record a sequence of ultrasound data, as the real-time raw image shown in the red widget, how should I annotate a “Yes” notation in the center of the raw image and show the annotated image in the yellow widget lively?

Assume this problem can be solved in three steps:
1. How can I add a new short-cut button in the toolbar to trigger the annotation?
2. How should I retrieve the real-time raw image?
3. How should I display the annotated image in the yellow widget?

Thank you again for your valuable time!