Having some issues trying to add additional rig components to the Epic Meta Human Template.
Seems related to the new naming rules, where the “rule_name” in add_joint() is returning 0 instead of a string. Assuming this is related to center components not having a “Center” token specified.
To Repro:
- Import the Mgear-> Shifter-> Guide Template Samples-> Epic Meta Human Template Z Up
- Select “neck_C0_head” (You can get the error parenting to other components too)
- Add a “chain_spring_01” component (default settings are fine)
- Select “guide” and build rig
We get the following output:
# Traceback (most recent call last):
# File "C:\Users\apfau\Documents\maya\modules\scripts\mgear\shifter\guide_manager.py", line 62, in build_from_selection
# rg.buildFromSelection()
# File "C:\Users\apfau\Documents\maya\modules\scripts\mgear\shifter\__init__.py", line 200, in buildFromSelection
# self.build()
# File "C:\Users\apfau\Documents\maya\modules\scripts\mgear\shifter\__init__.py", line 226, in build
# self.processComponents()
# File "C:\Users\apfau\Documents\maya\modules\scripts\mgear\shifter\__init__.py", line 419, in processComponents
# comp.stepMethods[i]()
# File "C:\Users\apfau\Documents\maya\modules\scripts\mgear\shifter\component\__init__.py", line 158, in step_04
# self.jointStructure()
# File "C:\Users\apfau\Documents\maya\modules\scripts\mgear\shifter\component\__init__.py", line 1558, in jointStructure
# gearMulMatrix=gearMulMatrix))
# File "C:\Users\apfau\Documents\maya\modules\scripts\mgear\shifter\component\__init__.py", line 269, in addJoint
# rot_off=rot_off)
# File "C:\Users\apfau\Documents\maya\modules\scripts\mgear\shifter\component\__init__.py", line 324, in _addJoint
# transform.getTransform(obj))
# File "C:\Users\apfau\Documents\maya\modules\scripts\mgear\core\primitive.py", line 127, in addJoint
# node.setTransformation(m)
# File "C:\Program Files\Autodesk\Maya2018\Python\lib\site-packages\pymel\core\general.py", line 1817, in createNode
# res = cmds.createNode(*args, **kwargs)
# File "C:\Program Files\Autodesk\Maya2018\Python\lib\site-packages\pymel\internal\pmcmds.py", line 134, in createNode_wrapped
# res = new_cmd(*new_args, **new_kwargs)
# RuntimeError: New name has no legal characters.