def __init__(self, *args):
#if args are passed in, this has been called from and out of date script. Warn and fail.
if args:
print ''
print "Because of an update to ml_utilities, the tool you're trying to run is deprecated and needs to be updated as well."
print "Please visit http://morganloomis.com/downloads and download the latest version of this tool."
OpenMaya.MGlobal.displayError('Tool out of date. See script editor for details.')
return
self.shortestTime = getFrameRate()/6000.0
#node variables
self.nodeSelection = mc.ls(sl=True)
self._nodes = list()
self._curves = list()
self._channels = list()
#time variables
self.currentTime = mc.currentTime(query=True)
self._time = None
self._timeRangeStart = None
self._timeRangeEnd = None
#keyframe command variables
self.selected = False
#other housekeeping
self._curvesCulled = False
评论列表
文章目录