# Programmatically update View Controllers and Volume Reslice Driver?

**URL:** <https://discourse.slicer.org/t/programmatically-update-view-controllers-and-volume-reslice-driver/5946>\
**Category:** Support\
**Created:** [February 27, 2019, 6:31pm UTC](https://discourse.slicer.org/t/programmatically-update-view-controllers-and-volume-reslice-driver/5946 "2019-02-27T18:31:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dsikka](https://avatars.discourse-cdn.com/v4/letter/d/cdc98d/32.png) [@dsikka](https://discourse.slicer.org/u/dsikka)\
**Post date:** [February 27, 2019, 6:31pm UTC](https://discourse.slicer.org/t/programmatically-update-view-controllers-and-volume-reslice-driver/5946/1 "2019-02-27T18:31:55Z")

</div>

Hi,

Is there a way to programmatically update the axial view of the Red Slice (as we can do using the View Controllers module)? Also, is there a way to progammatically update the Driver and Mode of the Red Slicer as well (as we can do using the Volume Reslice Driver)?

Thanks

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [February 28, 2019, 4:24pm UTC](https://discourse.slicer.org/t/programmatically-update-view-controllers-and-volume-reslice-driver/5946/2 "2019-02-28T16:24:01Z")

</div>

Yes, see these examples: [https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Manipulate\_a\_Slice\_View](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Manipulate_a_Slice_View)

Also you can look at the corresponding code in the reslice driver, and it should be easily scriptable.
