I’m simulating some stuff in python, basically it’s a loop that runs through each frame of the animation, performing some actions.
At the start I use
cmds.undoInfo(ock=1) and in the end
This way at the end of the simulation I can hit Ctrl+Z once and it does undo all of it, but the only problem is that it’s doing it frame by frame which is kind of slow.
Is there any way to speed it up, or is it just a limitation of undo in Maya?