# How to change the Red View to coronal via code?

**URL:** <https://discourse.slicer.org/t/how-to-change-the-red-view-to-coronal-via-code/10973>\
**Category:** Development\
**Created:** [April 2, 2020, 3:22pm UTC](https://discourse.slicer.org/t/how-to-change-the-red-view-to-coronal-via-code/10973 "2020-04-02T15:22:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Isobel\_Norris](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/isobel_norris/32/6459_2.png) [@Isobel\_Norris](https://discourse.slicer.org/u/Isobel_Norris)\
**Post date:** [April 2, 2020, 3:22pm UTC](https://discourse.slicer.org/t/how-to-change-the-red-view-to-coronal-via-code/10973/1 "2020-04-02T15:22:55Z")

</div>

I want to change the red view to the coronal orientation. Is there a way to do this in the code?

---

<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:** [April 2, 2020, 3:55pm UTC](https://discourse.slicer.org/t/how-to-change-the-red-view-to-coronal-via-code/10973/2 "2020-04-02T15:55:26Z")

</div>

Here’s an example in the script repository that details getting the slice nodes and then being able to add/remove or set the orientation as you are specifically asking about.  
[https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Change\_default\_slice\_view\_orientation](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Change_default_slice_view_orientation)
