Hello !
I would like to use Mirror Controls but when i use Left to Right or Right to Left i get the following error :
# Traceback (most recent call last):
# File “…\mgear\rigbits\mirror_controls.py”, line 171, in mirror_button_pressed
# self.func.mirror_left_to_right()
# File “…\mgear\rigbits\mirror_controls.py”, line 117, in mirror_left_to_right
# for source in self.get_specific_side_controls(side=“L”):
# File “…\mgear\rigbits\mirror_controls.py”, line 50, in get_specific_side_controls
# if node.nodeType() == “objectSet”:
# AttributeError: ‘str’ object has no attribute ‘nodeType’
Repro :
Merge an arm guide on a blank scene, build and use Mirror Controls.
Also, i noticed in get_opposite_control() :
if side == “L”:
target_name = node.name().replace(side_l, side_r)
elif side == “R”:
target_name = node.name().replace(side_r, side_l)
I resolved an old bug by using .replace(side_l, side_r, 1) so that way I replace the first occurence of “L” and not replace all.
It is in the same script, so i thought it could be good to know.
I am using mGear 5.0.7 on Maya 2023.
Would you like a github request ? Or is it already fixed in latest version ?