Has anyone had success getting line (or any other) annotations to show using Python in DM? My code is:
img = DM.CreateImage(...)
img_disp = img.CreateImageDisplay(1)
img_disp.AddNewComponent(2, 512, 0, 512, 1000)
img.ShowImage()
del imgk
Theoretically, this should draw a horizontal line annotation, but I'm not seeing anything in my images even though I can find a child component of type 'line annotation' in the image display component. There is also the function NewLineAnnotation() in Python but I can't find a function like ComponentAddChildAtEnd() that exists in the DM scripting language.