# Is it possible to add a global undo button?

**URL:** <https://discourse.slicer.org/t/is-it-possible-to-add-a-global-undo-button/16859>\
**Category:** Feature requests\
**Created:** [March 31, 2021, 2:09am UTC](https://discourse.slicer.org/t/is-it-possible-to-add-a-global-undo-button/16859 "2021-03-31T02:09:52Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![slicer365](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/slicer365/32/67549_2.png) [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Post date:** [March 31, 2021, 2:09am UTC](https://discourse.slicer.org/t/is-it-possible-to-add-a-global-undo-button/16859/1 "2021-03-31T02:09:52Z")

</div>

Sometimes during the process, I accidentally moved the model and wanted to return it. I found it difficult. I had to move it back manually, but it was not very accurate.Of course, there are still many situations. If there is a global Undo tool or Go back to the previous step in editing menu, it will be very good .Like this picture. ![捕获](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/b/7b598d9161b7907df3a098161830c377f0dd76d3.jpeg)

---

<div class="post-metadata">

**Author:** ![timeanddoctor](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/timeanddoctor/32/5839_2.png) [@timeanddoctor](https://discourse.slicer.org/u/timeanddoctor)\
**Post date:** [March 31, 2021, 4:32am UTC](https://discourse.slicer.org/t/is-it-possible-to-add-a-global-undo-button/16859/2 "2021-03-31T04:32:06Z")

</div>

the function like 3matic in 3d slicer is the segmentEditor, you can undo or redo in this module.  
And there are many more function in slicer just like the ITK/VTK, some processing can not be redo…

---

<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:** [April 3, 2021, 3:18am UTC](https://discourse.slicer.org/t/is-it-possible-to-add-a-global-undo-button/16859/3 "2021-04-03T03:18:40Z")

</div>

We used to have a global undo/redo operation in Slicer but as many features were added it was hard to keep it working correctly, so it got hidden.

We plan to re-enable it for specific node types ([markups](https://github.com/Slicer/Slicer/issues/4576), transforms), but there is no specific timeline.

Add a comments below describing what node types you would like to undo and why it is particularly important.

---

<div class="post-metadata">

**Author:** ![ga1g](https://avatars.discourse-cdn.com/v4/letter/g/cc9497/32.png) [@ga1g](https://discourse.slicer.org/u/ga1g)\
**Post date:** [August 26, 2023, 7:33am UTC](https://discourse.slicer.org/t/is-it-possible-to-add-a-global-undo-button/16859/4 "2023-08-26T07:33:53Z")

</div>

Hello,  
Slicer is great!  
The most important feature for me as a beginner is an undo for color selecting in volume as well as volume rendring.  
Some times it takes a lot of time to find the right adjusments and by clicking “Auto” in “volume” module or “suncronize with volume module” in “volume rendring” module just loose evrything…  
So undo for colors is appreciated. Hope it is not too complicated…

Thank  
Gal.

---

<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:** [June 27, 2024, 2:27am UTC](https://discourse.slicer.org/t/is-it-possible-to-add-a-global-undo-button/16859/5 "2024-06-27T02:27:33Z")

</div>

Making it possible to undo any operations on any node types would be challenging. However, we could enable undo for a few nodes types (at least to get started).

**What node changes would you like to be able to undo?**  
(you can select up to 3)

_Poll ([view on site](https://discourse.slicer.org/t/is-it-possible-to-add-a-global-undo-button/16859/5))_

---

<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:** [June 29, 2024, 1:19am UTC](https://discourse.slicer.org/t/is-it-possible-to-add-a-global-undo-button/16859/6 "2024-06-29T01:19:30Z")

</div>

Everyone who voted for this feature: please complete the poll above.

Please also ask your colleagues, collaborators, etc. to vote on features. There are about 9000 people on this forum and only a couple dozen has voted so far.

---

<div class="post-metadata">

**Author:** ![zifangx](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/zifangx/32/77050_2.png) [@zifangx](https://discourse.slicer.org/u/zifangx)\
**Post date:** [December 10, 2024, 5:23pm UTC](https://discourse.slicer.org/t/is-it-possible-to-add-a-global-undo-button/16859/7 "2024-12-10T17:23:49Z")

</div>

Hi,

Thanks for making the undo/redo button available to the Markup module, I was able to get the buttons back to the 3D Slicer interface following [this](https://projectweek.na-mic.org/PW39_2023_Montreal/Projects/UndoRedo/) instruction.  
Just wanted to report on a bug: I discovered that it almost always crashes the session when I hit Undo on an open curve that’s constrained to a model (unconstrained curves have no problem at all).  
Otherwise, it’s been working well.

Thanks,  
Zifang

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [December 10, 2024, 9:15pm UTC](https://discourse.slicer.org/t/is-it-possible-to-add-a-global-undo-button/16859/8 "2024-12-10T21:15:40Z")

</div>

> [@zifangx](#):
>
> it almost always crashes the session when I hit Undo on an open curve that’s constrained to a model

I tested [this](https://gitlab.com/chir-set/RcHacks7/-/blob/900664b75fca04210a065f1324d7fae0214eb559/14-UndoRedo.py.txt) implementation that _derives_ from the [original](https://projectweek.na-mic.org/PW39_2023_Montreal/Projects/UndoRedo/) work you linked and did not observe any crash in the scenario you described. May be you could give it a try.
