I’m would like to display unique text in the slice view for each slice.
I’m currently trying to use the python script to display text in slice view:
view=slicer.app.layoutManager().threeDWidget(0).threeDView() # Set text to "Something" view.cornerAnnotation().SetText(vtk.vtkCornerAnnotation.UpperRight,"Something") # Set color to red view.cornerAnnotation().GetTextProperty().SetColor(1,0,0) # Update the view view.forceRender()
However nothing shows up, do I have to enable something?
Another question I have is would this script display the same text for all the slices? So if I scroll through the slices it would be the same text? How can I display unique text for each slice?