def cutKey(self, includeSubFrames=False, **kwargs):
'''
Wrapper for the cutKey command. Curve and time arguments will be provided based on
how this object was intitialized, otherwise usage is the same as maya's cutKey command.
Option to delete sub-frames.
'''
if not 'includeUpperBound' in kwargs:
kwargs['includeUpperBound'] = False
if self.selected:
mc.cutKey(sl=True, **kwargs)
return
if not 'time' in kwargs:
if includeSubFrames:
kwargs['time'] = (round(self.time[0])-0.5, round(self.time[-1])+0.5)
else:
kwargs['time'] = self.time
mc.cutKey(self.curves, **kwargs)
评论列表
文章目录