def cutSelected(selectionOption=1, setKey=True):
keySel = _getKeySelection(selectionOption)
if keySel.selectedKeys():pass
elif keySel.frameRange():pass
if setKey:
start, end = keySel.time
if keySel.findKeyframe('previous', time=(start-1,)) < start-1:
mc.setKeyframe(keySel.curves, time=(start-1,), insert=True)
if keySel.findKeyframe('next', time=(end,)) > end:
mc.setKeyframe(keySel.curves, time=(end,), insert=True)
keySel.cutKey()
评论列表
文章目录