Home Website Youtube GitHub

Component leg_2jnt_02 stopped building

A weird thing happened recently - rig in our current project stopped building on my pc - even old versions.
There’s an issue with leg_2jnt_02 - as I can not build that one even in a clean scene.

So the weird thing is - that we all link mgear from a server, so we use same files - and it’s building perfectly on other pcs. I’ve tried to download fresh files to check where’s the issue but same issue on that pc.

I’m sure that’s not an mgear issue, but wonder if anyone have any clues what could happen?

= BUILDING RIG ==============================================
Initial Hierarchy
Init : leg_C0 (leg_2jnt_02)
Objects : leg_C0 (leg_2jnt_02)
Properties : leg_C0 (leg_2jnt_02)
Operators : leg_C0 (leg_2jnt_02)
# Traceback (most recent call last):
#   File "Z:\_pipeline\vendors\mgear\latest\scripts\mgear\shifter\guide_manager.py", line 62, in build_from_selection
#     rg.buildFromSelection()
#   File "Z:\_pipeline\vendors\mgear\latest\scripts\mgear\shifter\__init__.py", line 200, in buildFromSelection
#     self.build()
#   File "Z:\_pipeline\vendors\mgear\latest\scripts\mgear\shifter\__init__.py", line 226, in build
#     self.processComponents()
#   File "Z:\_pipeline\vendors\mgear\latest\scripts\mgear\shifter\__init__.py", line 419, in processComponents
#     comp.stepMethods[i]()
#   File "Z:\_pipeline\vendors\mgear\latest\scripts\mgear\shifter\component\__init__.py", line 141, in step_02
#     self.addOperators()
#   File "Z:/_pipeline/vendors/mgear/latest/scripts/mgear/shifter_classic_components\leg_2jnt_02\__init__.py", line 671, in addOperators
#     self.tws2_loc.setAttr("sx", .001)
#   File "C:\Program Files\Autodesk\Maya2018\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\Maya2018\Python\lib\site-packages\pymel\core\general.py", line 573, in setAttr
#     cmds.setAttr(attr, *args, **kwargs)
#   File "C:\Program Files\Autodesk\Maya2018\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_C0_tws2_loc.scaleX' is locked or connected and cannot be modified.

Thanks in advance!

@Krzym this smell like Maya user preferences issue. Can you try with fresh user preferences?
Just to be sure is not that :slight_smile:

Thanks, that was it - so many years in that and never happened to me ^^

1 Like