# Reformatted slice node doesn't restore its original orientation

**URL:** https://discourse.slicer.org/t/reformatted-slice-node-doesnt-restore-its-original-orientation/19601
**Category:** Development
**Created:** [September 10, 2021, 1:40am UTC](https://discourse.slicer.org/t/reformatted-slice-node-doesnt-restore-its-original-orientation/19601 "2021-09-10T01:40:51Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)
#### Post date: [September 10, 2021, 3:51am UTC](https://discourse.slicer.org/t/reformatted-slice-node-doesnt-restore-its-original-orientation/19601/2 "2021-09-10T03:51:54Z")

</div>

The button immediately to the left of the slice offset slider is the maximize/restore for the slice layout. This is a new button recently added. See the following for details on that feature

> [@New feature: maximize view](https://discourse.slicer.org/t/new-feature-maximize-view/19581):
>
> We added a new feature that allows quickly maximize a view (use the space of the entire view layout) without switching between layouts. The feature can be activated using 3 methods: double-click on a view to maximize/restore click the maximize/restore button in the view control bar (at the top of each view) right-click on the view and choose maximize/restore When the view is restored then the original view layout is restored. The feature is available in latest Slicer Preview Relea…

There isn’t a button for resetting default orientation. You can change orientation in the slice view pop up widget that displays when hovering over the slice offset slider area. There is a combobox for selecting orientation.

You can also set orientation programmatically like so:

```python
orientation = slicer.app.layoutManager().sliceWidget("Red").sliceLogic().GetSliceNode().GetDefaultOrientation()
slicer.app.layoutManager().sliceWidget("Red").setSliceOrientation(orientation)

```

---

_[View the full topic](https://discourse.slicer.org/t/reformatted-slice-node-doesnt-restore-its-original-orientation/19601)._
