Hey Jeremie, thanks very much, works perfectly now :D Best regards
2013/6/25 Jeremie Passerin <[email protected]> > Hi Gustavo ! > > Yeah I saw that the other day, I'm surprized that nobody noticed it > before. > We've started using it here at Blur and I fixed it. > I'm attaching the new file ;-) > > Jeremie > > > On 25 June 2013 09:33, Gustavo Eggert Boehs <[email protected]> wrote: > >> Hello guys, sorry for crossposting this here (from Si-Community), as I >> understand many gear users hang around here, might get a bit more help... >> >> I am using gear for mirroring poses and animation, as it already has >> template making built in and stuff... very neat. >> Mirror pose works like a charm. The command called is >> xsi.Gear_MirrorPose() no arguments needed. It applies mirroring to selected >> controlers. >> >> Mirror animation on the other hand (called by xsi.Gear_mirrorAnimation()) >> asks for 1 argument (controlers). Funny enough the menu does not seem to >> pass any attribute when calling this functions. Therefore I get an error. I >> try (by hand) passing xsi.Selection (as the first thing the function does >> is checking if selection is null) with no luck. I have also tried to pass >> object names as string, no luck >> >> Error without passing anything: >>> >>> # ERROR : Traceback (most recent call last): >>> # TypeError: gear_MirrorAnimation_Execute() takes exactly 1 argument (0 >>> given) >>> # - [line 4294967295 in >>> xxxxxxxxxxxxxxxxxxxxxxxxxxxx\Addons\gear\Application\Plugins\gear_mirrorAnimation.py] >>> # ERROR : OLE error 0x80020101 >> >> >> Error without passing selection: >> >>> Application.gear_MirrorAnimation() >>> # ERROR : Unexpected Python Error: Traceback (most recent call last): >>> # File "C:\Program Files\Autodesk\Softimage >>> 2014\Application\python\Lib\site-packages\win32com\server\policy.py", line >>> 324, in _InvokeEx_ >>> # return self._invokeex_(dispid, lcid, wFlags, args, kwargs, >>> serviceProvider) >>> # File "C:\Program Files\Autodesk\Softimage >>> 2014\Application\python\Lib\site-packages\win32com\server\policy.py", line >>> 585, in _invokeex_ >>> # return func(*args) >>> # File "C:\Program Files\Autodesk\Softimage >>> 2014\Application\python\Lib\site-packages\win32comext\axscript\client\framework.py", >>> line 538, in ParseScriptText >>> # return self.DoParseScriptText(code, sourceContextCookie, >>> startLineNumber, bWantResult, flags) >>> # File "C:\Program Files\Autodesk\Softimage >>> 2014\Application\python\Lib\site-packages\win32comext\axscript\client\pyscript.py", >>> line 334, in DoParseScriptText >>> # return self.ExecInScriptedSection(codeBlock, globs) >>> # File "C:\Program Files\Autodesk\Softimage >>> 2014\Application\python\Lib\site-packages\win32comext\axscript\client\framework.py", >>> line 907, in ExecInScriptedSection >>> # self.HandleException(codeBlock) >>> # File "C:\Program Files\Autodesk\Softimage >>> 2014\Application\python\Lib\site-packages\win32comext\axscript\client\framework.py", >>> line 950, in HandleException >>> # codeBlock, exc_type, exc_value, exc_traceback) >>> # File "C:\Program Files\Autodesk\Softimage >>> 2014\Application\python\Lib\site-packages\win32comext\axscript\client\error.py", >>> line 77, in __init__ >>> # self.__BuildFromException(site, exc_type, exc_value, exc_traceback) >>> # File "C:\Program Files\Autodesk\Softimage >>> 2014\Application\python\Lib\site-packages\win32comext\axscript\client\error.py", >>> line 87, in __BuildFromException >>> # self._BuildFromOther(site, type, value, tb) >>> # File "C:\Program Files\Autodesk\Softimage >>> 2014\Application\python\Lib\site-packages\win32comext\axscript\client\error.py", >>> line 180, in _BuildFromOther >>> # bits[i] = bits[i].decode('utf8') >>> # File "C:\Program Files\Autodesk\Softimage >>> 2014\Application\python\lib\encodings\utf_8.py", line 16, in decode >>> # return codecs.utf_8_decode(input, errors, True) >>> # UnicodeDecodeError: 'utf8' codec can't decode byte 0xfa in position >>> 12: invalid start byte >> >> >> >> Anybody had any luck with these? >> Cheers, >> Gustavo E Boehs >> > > -- Gustavo E Boehs http://www.gustavoeb.com.br/blog

