'vtkSlicerMarkupsModuleMRML.vtkMRMLMarkupsDisplayNo' object has no attribute 'SetSliceDisplayModeToProjection'

image
what’s wrong?

As the error message states, there is no such method. It is only available in model display nodes. See what projection options are available for markups in the markups display node documentation.

dn.SliceProjectionOn()

Thanks