Home Website Youtube GitHub

IK Mapper not working on arms or legs

When trying to use the IK Mapper on my rig I select the arm or leg controls and hit confirm, but nothing happens and I get this error in the script editor (head/spine stuff works):

select -r L_arm_armClavicle_FK_CTRL ;
select -tgl L_arm_armShoulder_FK_CTRL ;
select -tgl L_arm_armElbow_FK_CTRL ;
select -tgl L_arm_armWrist_FK_CTRL ;
# Traceback (most recent call last):
# File “C:\Program Files\Autodesk\Maya2022\Python37\lib\site-packages\pymel\core\nodetypes.py”, line 710, in _attr
# plug = self.apimfn().findPlug(attr, False)
# RuntimeError: (kInvalidParameter): Object is incompatible with this method
# #
# During handling of the above exception, another exception occurred:

# Traceback (most recent call last):
#   File "C:\Program Files\Autodesk\Maya2022\Python37\lib\site-packages\pymel\core\nodetypes.py", line 730, in _attr
#     raise RuntimeError
# RuntimeError
# # 
# During handling of the above exception, another exception occurred:

# Traceback (most recent call last):
#   File "C:\Program Files\Autodesk\Maya2022\Python37\lib\site-packages\pymel\core\nodetypes.py", line 3825, in attr
#     res = self.getShape().attr(attr)
#   File "C:\Program Files\Autodesk\Maya2022\Python37\lib\site-packages\pymel\core\nodetypes.py", line 662, in attr
#     return self._attr(attr, False)
#   File "C:\Program Files\Autodesk\Maya2022\Python37\lib\site-packages\pymel\core\nodetypes.py", line 740, in _attr
#     raise general.MayaAttributeError('%s.%s' % (self, attr))
# pymel.core.general.MayaAttributeError: Maya Attribute does not exist (or is not unique):: 'L_arm_armClavicle_FK_CTRLShape.L_custom_side_label'
# # 
# During handling of the above exception, another exception occurred:

# Traceback (most recent call last):
#   File "C:\Users\bekkeng\Documents\maya\modules\scripts\mgear\animbits\humanIkMapper.py", line 856, in confirm_cb
#     self.bone_list, selection, self.do_mirror
#   File "C:\Users\bekkeng\Documents\maya\modules\scripts\mgear\core\utils.py", line 236, in wrap
#     raise e
#   File "C:\Users\bekkeng\Documents\maya\modules\scripts\mgear\core\utils.py", line 233, in wrap
#     return func(*args, **kwargs)
#   File "C:\Users\bekkeng\Documents\maya\modules\scripts\mgear\animbits\humanIkMapper.py", line 159, in set_list_of_bones_from_selection
#     for ctrl in ctrls
#   File "C:\Users\bekkeng\Documents\maya\modules\scripts\mgear\animbits\humanIkMapper.py", line 159, in <listcomp>
#     for ctrl in ctrls
#   File "C:\Users\bekkeng\Documents\maya\modules\scripts\mgear\rigbits\mirror_controls.py", line 15, in get_opposite_control
#     side_l = node.attr("L_custom_side_label").get()
#   File "C:\Program Files\Autodesk\Maya2022\Python37\lib\site-packages\pymel\core\nodetypes.py", line 3827, in attr
#     raise e
#   File "C:\Program Files\Autodesk\Maya2022\Python37\lib\site-packages\pymel\core\nodetypes.py", line 3821, in attr
#     res = self._attr(attr, checkShape)
#   File "C:\Program Files\Autodesk\Maya2022\Python37\lib\site-packages\pymel\core\nodetypes.py", line 740, in _attr
#     raise general.MayaAttributeError('%s.%s' % (self, attr))
# pymel.core.general.MayaAttributeError: Maya Attribute does not exist (or is not unique):: 'L_arm_armClavicle_FK_CTRL.L_custom_side_label'

update: it’s something to do with the mirroring. When that is checked off and you do each arm or leg separately it works.

2 Likes