Here’s a script that some might find useful. It deletes the undo history and older undos on all subtools. - Kinda useful if you want that sort of thing.
// Nuke undo history script
[IButton, "Nuke undo history", "Deletes UNDO history for ALL subtools.",
// create variable equal to number of sub tools
[VarDef, len, [SubToolGetCount]]
[VarDef, msg, ""]
[VarSet, msg, ""]
[VarDef, c, 0]
[VarSet, c, 0]
[VarSet,i,0]
[Loop,len,
[SubToolSelect,[Val,i]] // select the current sub tool
[IPress,Edit:Tool:DelOlderUH] // Delete Older Undo History
[IPress,Edit:Tool:DelUH] // Delete Undo History
[VarInc, i] // i++
[VarSet, c, i]
]
[VarSet, msg, [StrMerge, msg, c, " subtools have had UNDO history deleted."]]
// show message for two seconds
[Note, msg,,2]
] // end button
As always, use at your own risk.