CancelUndo() vs DropUndo()
![Stretch65](https://secure.gravatar.com/avatar/4ac8e70dacce16d2ff5a602d714c5cf0?&r=pg&s=100&d=https%3A%2F%2Fvanillicon.com%2F4ac8e70dacce16d2ff5a602d714c5cf0_100.png)
If I begin a script with beginUndo(), and then at some point I need to abort/discard the undo, what method should I use: cancelUndo() or dropUndo()?
You currently have no notifications.
If I begin a script with beginUndo(), and then at some point I need to abort/discard the undo, what method should I use: cancelUndo() or dropUndo()?
Licensing Agreement | Terms of Service | Privacy Policy | EULA
© 2025 Daz Productions Inc. All Rights Reserved.
Comments
They are not at all the same - Cancel reverts the action, Drop performs the action but doesn't add it to the stack http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/undostack_dz#a_1a2f4c2dc71944a7a7a5a272dfce0e8d43