How to change name of tabbed view layout?

Operating system:windows 10
Slicer version:4.11

In the layout menu in the tabbed slices view option the tabs are named as Red, Green, yellow. Is there any way I can rename the tabs to - for example, axial, coronal, sagittal?

You can either create your own layout with view names you like or rename existing slice view nodes:

sliceNodes=slicer.util.getNodesByClass('vtkMRMLSliceNode')
sliceNodes[0].SetName('Axial')
sliceNodes[1].SetName('Coronal')
sliceNodes[2].SetName('Sagittal')

Note that the user can set any slice viewer to any orientation, so nothing guarantees that the view that you name “Axial” view will always show axial slice.

1 Like