def doIt(self, args): # pass arguments, and if 0 flags are given, show the window if self.pass_args(args) == 0: ui.show() return # the animation cache must be stored in the command instance itself so # we pass a reference to the cache to the Lt class, so we can manipulate # the currently active cache if self.new_cache_arg: # if initialize, then create a new cache self.anim_cache = oma.MAnimCurveChange() animdata.anim_cache = self.anim_cache animdata.prepare( mode=options.BlendingMode.get_mode_from_id(self.type_arg)) # always interpolate self.anim_cache = animdata.anim_cache tween.interpolate(blend=self.blend_arg, mode=options.BlendingMode.get_mode_from_id( self.type_arg))
def doIt(self, args): self.anim_cache = oma.MAnimCurveChange() animdata.anim_cache = self.anim_cache self.clearResult() self.setResult(keyhammer.do())