Gear mirror animation attribute

115 views
Skip to first unread message

Gustavo Eggert Boehs

unread,
Jun 25, 2013, 12:33:52 PM6/25/13
to SI mailing list
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

Jeremie Passerin

unread,
Jun 25, 2013, 12:45:49 PM6/25/13
to softimage
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
gear_mirrorAnimation.py

Miquel Campos

unread,
Jun 25, 2013, 1:55:34 PM6/25/13
to soft...@listproc.autodesk.com
Yep i noticed and fixed. But didn't tell you. Sorry :(
--

----------------------------------------------------

Miquel Campos
www.akaosaru.com


Miquel Campos

unread,
Jun 25, 2013, 2:05:40 PM6/25/13
to soft...@listproc.autodesk.com
Opps, my bad. I did some simple changes in the mirror pose tool. Not in the animation mirror. I will ask the animators to try this one.

Gustavo Eggert Boehs

unread,
Jun 25, 2013, 1:44:02 PM6/25/13
to SI mailing list
Hey Jeremie, thanks very much, works perfectly now :D
Best regards


2013/6/25 Jeremie Passerin <gere...@gmail.com>

Jeremie Passerin

unread,
Jun 25, 2013, 7:25:22 PM6/25/13
to softimage
Miquel > I'm glad you're not sending me an email everytime you find a bug in gear :D I would have to blacklist you !

Miquel Campos

unread,
Jun 25, 2013, 8:30:59 PM6/25/13
to soft...@listproc.autodesk.com


Seriously, will be really hard to be blacklisted finding bugs in gear. ;)


----------------------------------------------------

Miquel Campos
www.akaosaru.com



2013/6/25 Jeremie Passerin <gere...@gmail.com>

Mirko Jankovic

unread,
Jan 24, 2014, 5:55:06 AM1/24/14
to soft...@listproc.autodesk.com
Hey Guys,
Anyone could help with mirror animation and gear please?
Would mean a lot!

I;ve found this fixed py and replaced old one but any how to manual what to select what to mirror.. Whatever i doo I'm getting ERROR : OLE error 0x80020101 plus bunch of other stuff..
Maybe I just made some stupid workflow selection problem or something but any hlp would be great.

Also hoping that this one will be shared, looks great! :)

And would save a lot of time for sure...
Reply all
Reply to author
Forward
0 new messages