Open miquelcampos opened 6 years ago
HI @miquelcampos Is this still happenning? I wasn't able to reproduce it...
@jdrese I didn't check this yet. I didn't find the issue in the past but it was reported by several users.
Hey guys, I have been doing some testing of mGear from a rez package using Maya 2017 update 4 with mGear 3.0.3 and I have hit this bug straight out of the gate.
Looks as if the scale attr is trying to be set, even though the parameter is scaleConstrained 6 lines above the setAttr. https://github.com/mgear-dev/shifter_classic_components/blob/master/scripts/mgear/shifter_classic_components/leg_2jnt_01/__init__.py#L602
I found if I removed the setAttr then it evaluates correctly, but I haven't spent enough time digging into your components to see if that setAttr is needed for some other reason.
Hope this helps
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.
Error: setAttr: The attribute ‘leg_C0_tws2_loc.scaleX’ is locked or connected and cannot be modified.
Reported in the forum: http://forum.mgear-framework.com/t/mgear-2-5-24-biped-template-erroring-when-building/117