maya cmds pymel undoInfo chunk 撤销束

maya cmds pymel undoInfo chunk 撤销束

cmds.undoInfo(openChunk = 1)

# your code

cmds.undoInfo(closeChunk = 1)

这样,在两行 chunk 之间的可撤销 cmds 命令都会被封装成一个undo

原文地址:https://www.cnblogs.com/ibingshan/p/10607716.html