# Using Reformat in python

**URL:** <https://discourse.slicer.org/t/using-reformat-in-python/6279>\
**Category:** Development\
**Created:** [March 25, 2019, 3:52pm UTC](https://discourse.slicer.org/t/using-reformat-in-python/6279 "2019-03-25T15:52:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex1](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@Alex1](https://discourse.slicer.org/u/Alex1)\
**Post date:** [March 25, 2019, 3:53pm UTC](https://discourse.slicer.org/t/using-reformat-in-python/6279/1 "2019-03-25T15:53:00Z")

</div>

Hi all,

I hope to rotate my red slice and I found out that Reformat is the perfect choice. However, when I try to use it from a Python scripted module. I cannot find the function from reformat.logic or reformat widget. I’m trying to implement this👇 in python. Does anyone have any idea?

 ![09](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/0/c0394aab4e364f5646f393ac2d31b483c47c1d03.png)

Thanks for your time!

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [March 25, 2019, 4:00pm UTC](https://discourse.slicer.org/t/using-reformat-in-python/6279/2 "2019-03-25T16:00:58Z")

</div>

See examples in the script repository:

- [https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Set\_slice\_position\_and\_orientation\_from\_3\_markup\_fiducials](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Set_slice_position_and_orientation_from_3_markup_fiducials)
- [https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Change\_slice\_orientation](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Change_slice_orientation)

---

<div class="post-metadata">

**Author:** ![Alex1](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@Alex1](https://discourse.slicer.org/u/Alex1)\
**Post date:** [March 26, 2019, 8:23am UTC](https://discourse.slicer.org/t/using-reformat-in-python/6279/3 "2019-03-26T08:23:26Z")

</div>

Hi Andras,  
Thanks for your help. This is exactly what I’m looking for.
