I am writing a script that does several things one after the other.
Is there a trick to collapse or delete the undo history of what the script does?
If I want to undo after executing the script, it would start going back steps of what the script did.