Hi everyone, are there any ways in which I could access/ edit the undo queue?
The reason I asked is because, in my current tooling, I created the following in one of my renaming function:
cmds.undoInfo(chunkName='renameChunk', openChunk=True)
# do cmds.rename operations
cmds.undoInfo(chunkName='renameChunk', closeChunk=True)
However, if I am trying to do an undo function (ctrl+z) to revert back the naming, I need to hit the key combination a couple of times instead of the expected 1 time.
And upon printing the list of undo queues, it is something like:
...
# 39: #
# 40: #
# 41: #
# 42: #
# 43: renameChunk #
# 44: #
# 45: #
# 46: #
# 47: #
# 48: #
# 49: #
And so I was thinking if it is possible to ‘remove’ these empty actions?