ZBrushCentral

MergeUndo not always undoing the right number of undos

I have various scripts that use [mergeundo] so that I can undo the whole script at once rather than each step of the script. However, I get inconsistent results. Sometimes, the very same script will undo the right number of steps, but sometimes it will undo one or two steps too many or too few. I can’t figure out any consistency to the issue. Has anyone seen this happen or know of the solution?

Hi Ryan,

MergeUndo can be tricky. The problem is that not everything registers an undo, and if you use If statements this can complicate things. It’s really essential to put [MergeUndo] before any command that affects the ZBrush interface.

I don’t really have any more advice to give on that. I’ve not used MergeUndo extensively.

-Marcus