vtkMRMLNode has a method
GetOrientation() wich returns string value: Axial, Coronal, Sagittal or Reformat.
Also there is a button on the view that probably restore the default state (on the picture)
I tried to reformat the slice, restore it (by pressing on that button) and check the orientation (I expected that it should have been changed back to Axial):
layoutManager = slicer.app.layoutManager() view = layoutManager.sliceWidget('Red').sliceView() sliceNode = view.mrmlSliceNode() sliceNode.GetOrientation() # gives `Reformat`
but it returns
Is it expected behaviour?