Thanks. Well. It’s just that I’ve heard about it before, that you need to enclose your code to be able to undo it, but I guess I’ve never understood why since any of my scripts “undos” fine.
So I wondered if this was something particularly for Pymel, but is it really a Python thing?