Gear Mirror Animation

Issues concerning rigging & Face Robot...
Post Reply
User avatar
gustavoeb
Moderator
Posts: 587
Joined: 21 Jul 2010, 00:33
Skype: gustavoboehs

Gear Mirror Animation

Post by gustavoeb » 25 Jun 2013, 03:30

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 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:

Code: Select all

# 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:

Code: Select all

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 Eggert Boehs
Blog: http://www.gustavoeb.com.br/

User avatar
csaez
Posts: 253
Joined: 09 Jul 2012, 15:31
Skype: csaezmargotta
Location: Sydney, Australia
Contact:

Re: Gear Mirror Animation

Post by csaez » 25 Jun 2013, 06:25

I don't have GEAR installed here but you can see the argument list through Application.EditCommand("gear_MirrorAnimation"), perhaps there is a clue.

User avatar
gustavoeb
Moderator
Posts: 587
Joined: 21 Jul 2010, 00:33
Skype: gustavoboehs

Re: Gear Mirror Animation

Post by gustavoeb » 25 Jun 2013, 18:27

hum... doesnt tell me much :(
Gustavo Eggert Boehs
Blog: http://www.gustavoeb.com.br/

User avatar
gustavoeb
Moderator
Posts: 587
Joined: 21 Jul 2010, 00:33
Skype: gustavoboehs

Re: Gear Mirror Animation

Post by gustavoeb » 25 Jun 2013, 19:26

Jeremi posted the fixed python file in the SI mailing list.
Here it is:
https://dl.dropboxusercontent.com/u/392 ... imation.py
Gustavo Eggert Boehs
Blog: http://www.gustavoeb.com.br/

Post Reply

Who is online

Users browsing this forum: No registered users and 23 guests