CancelUndo() vs DropUndo()
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
© 2026 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