Home Website Youtube GitHub

No joints created

Hello, I’ve used mGear before in Maya 2020 and it worked perfectly but now I changed to 2019, I installed 3.3
and then today upgraded to mGear 3.4 and there seems to be no joints created after I build from selection. None of the controls relate to each other (for example rotating spine controls only moves those, not the arms, head etc)

I’ve tried deleting every file related to mGear and reinstalling but there’s no difference, I get these messages after the build selection is finished.

# Traceback (most recent call last):
#   File "C:/Users/Lee/Documents/maya/2019/scripts\mgear\shifter\guide_manager.py", line 62, in build_from_selection
#     rg.buildFromSelection()
#   File "C:/Users/Lee/Documents/maya/2019/scripts\mgear\shifter\__init__.py", line 192, in buildFromSelection
#     self.build()
#   File "C:/Users/Lee/Documents/maya/2019/scripts\mgear\shifter\__init__.py", line 218, in build
#     self.processComponents()
#   File "C:/Users/Lee/Documents/maya/2019/scripts\mgear\shifter\__init__.py", line 396, in processComponents
#     comp.stepMethods[i]()
#   File "C:/Users/Lee/Documents/maya/2019/scripts\mgear\shifter\component\__init__.py", line 140, in step_02
#     self.addOperators()
#   File "C:/Users/Lee/Documents/maya/2019/scripts/mgear/shifter_classic_components\leg_2jnt_01\__init__.py", line 602, in addOperators
#     self.tws2_loc.setAttr("sx", .001)
#   File "C:\Program Files\Autodesk\Maya2019\Python\lib\site-packages\pymel\core\nodetypes.py", line 567, in setAttr
#     return general.setAttr("%s.%s" % (self, attr), *args, **kwargs)
#   File "C:\Program Files\Autodesk\Maya2019\Python\lib\site-packages\pymel\core\general.py", line 573, in setAttr
#     cmds.setAttr(attr, *args, **kwargs)
#   File "C:\Program Files\Autodesk\Maya2019\Python\lib\site-packages\pymel\internal\pmcmds.py", line 134, in setAttr_wrapped
#     res = new_cmd(*new_args, **new_kwargs)
# RuntimeError: setAttr: The attribute 'leg_L0_tws2_loc.scaleX' is locked or connected and cannot be modified.

Hopefully it’s an easy fix or error on my part, I appreciate any replies.

Thanks

can you share the guide?

Side note: please format your code using this button image

or using ``` before and after the code block

# formatted example
# formatted example
# formatted example

Not formatted example

Not formatted example

Not formatted example

Hello Miquel, my apologies about not formatting the code.

I just used the sample biped template, no changes made to it. I tested the quad template and it works fine so I’m guessing something has gone wrong with the biped template.

I noticed this too if it helps -

Objects : tongue_C0 (chain_01)
Control tag relative: Can't find reference for  object : mouth_C0.jaw
Objects : eye_R0 (eye_01)
Control tag relative: Can't find reference for  object : neck_C0.head
Objects : eyeslook_C0 (control_01)
Control tag relative: Can't find reference for  object : neck_C0.head
Objects : foot_L0 (foot_bk_01)
Control tag relative: Can't find reference for  object : leg_L0.ankle
Objects : leg_L0 (leg_2jnt_01)
Control tag relative: Can't find reference for  object : spine_C0.root
Objects : thumb_R0 (chain_01)
Control tag relative: Can't find reference for  object : thumbRoll_R0.root
Objects : finger_R1 (chain_01)
Control tag relative: Can't find reference for  object : meta_R0.0_loc
Objects : finger_R0 (chain_01)
Control tag relative: Can't find reference for  object : meta_R0.root
Objects : eye_L0 (eye_01)
Control tag relative: Can't find reference for  object : neck_C0.head
Objects : arm_R0 (arm_2jnt_01)
Control tag relative: Can't find reference for  object : shoulder_R0.tip
Objects : shoulder_R0 (shoulder_01)
Control tag relative: Can't find reference for  object : spine_C0.eff
Objects : thumbRoll_R0 (control_01)
Control tag relative: Can't find reference for  object : meta_R0.root
Objects : finger_R3 (chain_01)
Control tag relative: Can't find reference for  object : meta_R0.2_loc
Objects : meta_R0 (meta_01)
Objects : finger_R2 (chain_01)
Objects : mouth_C0 (mouth_01)
Control tag relative: Can't find reference for  object : neck_C0.head
Objects : arm_L0 (arm_2jnt_01)
Control tag relative: Can't find reference for  object : shoulder_L0.tip
Objects : finger_L0 (chain_01)
Control tag relative: Can't find reference for  object : meta_L0.root
Objects : armUI_R0 (control_01)
Objects : finger_L1 (chain_01)
Control tag relative: Can't find reference for  object : meta_L0.0_loc
Objects : finger_L2 (chain_01)
Control tag relative: Can't find reference for  object : meta_L0.1_loc
Objects : foot_R0 (foot_bk_01)
Control tag relative: Can't find reference for  object : leg_R0.ankle
Objects : legUI_R0 (control_01)
Objects : meta_L0 (meta_01)
Objects : neck_C0 (neck_ik_01)
Control tag relative: Can't find reference for  object : spine_C0.eff
Objects : faceUI_C0 (control_01)
Objects : armUI_L0 (control_01)
Objects : finger_L3 (chain_01)
Objects : global_C0 (control_01)
Objects : spineUI_C0 (control_01)
Control tag relative: Can't find reference for  object : spine_C0.eff
Objects : shoulder_L0 (shoulder_01)
Control tag relative: Can't find reference for  object : spine_C0.eff
Objects : thumb_L0 (chain_01)
Control tag relative: Can't find reference for  object : thumbRoll_L0.root
Objects : thumbRoll_L0 (control_01)
Objects : leg_R0 (leg_2jnt_01)
Control tag relative: Can't find reference for  object : spine_C0.root
Objects : legUI_L0 (control_01)
Objects : spine_C0 (spine_ik_01)
Control tag relative: Can't find reference for  object : body_C0.root
Objects : local_C0 (control_01)
Objects : body_C0 (control_01)

Thanks

now that I realized this issue is not new :stuck_out_tongue:

the issue still open https://github.com/mgear-dev/shifter_classic_components/issues/12

@Zola found this solution:

I have found that by setting an optionVar (related to pairBlend creation on constrained transform attributes) solves the problem:

pm.optionVar(iv=(‘animBlendingOpt’, 1))

The related Preference setting is the Animation Blending. My Preferences was a bit trashed and no option was selected there. The Never blend… option (animBlendingOpt=0) prevents transforming constrained nodes and prevents setting its constrained parameters as the leg building code probably tries.

Also an alternative brute force solution: Error after build

1 Like

Thanks, I tried commenting out the code but it didn’t work but simply deleting my Maya user prefs worked, thank you!