Hi,
I would like to automate importing the mocap skeleton biped and characterizing it. But I have been running into an issue that I was able to reproduce on the shifter biped template with mGear 3.4.0 in Maya 2018 on a Windows 10 PC.
Basically I import the shifter biped template, scale the “guide” group up by 10 (because my character is quite large) and build the rig.
Then I run the following lines inside maya’s script editor:
from mgear.shifter import mocap_tools
mocap_tools.importSkeletonBiped()
mocap_tools.characterizeBiped()
It seems that the characterizeBiped function does not wait for the importSkeletenBiped function to finish, because the mocap_template does not get scaled and fitted correctly. Instead the mGear rig shrinks down to the template and destroys the rig.
When I run the above lines separately, everything works as expected.
So first run:
mocap_tools.importSkeletonBiped()
And afterwards run:
mocap_tools.characterizeBiped()
I also tried the above script on a standard size biped template rig and there was also some strange behavior with ctrls jumping around. But that also went away when I executed the two lines separately.