maya cmds pymel undoInfo chunk 撤销束

maya cmds pymel undoInfo chunk 撤销束

cmds.undoInfo(openChunk = 1)

# your code

 

cmds.undoInfo(closeChunk = 1)

 

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

posted @ 2019-03-27 15:13  ibingshan  阅读(350)  评论(0编辑  收藏  举报