Ejemplo n.º 1
0
 def __call__(self, *args):
     cmds.undoInfo(openChunk=1)
     try:
         try:
             return self.func(*self.args, **self.kwargs)
         except Exception, e:
             raise _factories.CallbackError(self, e)
     finally:
         cmds.undoInfo(closeChunk=1)
Ejemplo n.º 2
0
 def __call__(self, *args):
     cmds.undoInfo(openChunk=1)
     try:
         try:
             return self.func(*self.args, **self.kwargs)
         except Exception, e:
             raise _factories.CallbackError(self, e)
     finally:
         cmds.undoInfo(closeChunk=1)
Ejemplo n.º 3
0
 def __call__(self,*args,**kwargs):
     # not sure when kwargs would get passed to __call__,
     # but best not to remove support now
     kwargsFinal = self.kwargs.copy()
     kwargsFinal.update(kwargs)
     cmds.undoInfo(openChunk=1)
     try:
         return self.func(*self.args + args, **kwargsFinal)
     finally:
         cmds.undoInfo(closeChunk=1)
Ejemplo n.º 4
0
 def __call__(self, *args, **kwargs):
     # not sure when kwargs would get passed to __call__,
     # but best not to remove support now
     kwargsFinal = self.kwargs.copy()
     kwargsFinal.update(kwargs)
     cmds.undoInfo(openChunk=1)
     try:
         try:
             return self.func(*self.args + args, **kwargsFinal)
         except Exception, e:
             raise _factories.CallbackError(self, e)
     finally:
         cmds.undoInfo(closeChunk=1)
Ejemplo n.º 5
0
 def __call__(self, *args, **kwargs):
     # not sure when kwargs would get passed to __call__,
     # but best not to remove support now
     kwargsFinal = self.kwargs.copy()
     kwargsFinal.update(kwargs)
     cmds.undoInfo(openChunk=1)
     try:
         try:
             return self.func(*self.args + args, **kwargsFinal)
         except Exception, e:
             raise _factories.CallbackError(self, e)
     finally:
         cmds.undoInfo(closeChunk=1)