Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Shifter: leg_2jnt_01 locket attr issue #12

Open
miquelcampos opened this issue Sep 27, 2018 · 4 comments
Open

Shifter: leg_2jnt_01 locket attr issue #12

miquelcampos opened this issue Sep 27, 2018 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@miquelcampos
Copy link
Member

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

@miquelcampos miquelcampos added the bug Something isn't working label Sep 27, 2018
@miquelcampos miquelcampos self-assigned this Sep 27, 2018
@jdrese
Copy link
Member

jdrese commented Nov 6, 2018

HI @miquelcampos
Is this still happenning? I wasn't able to reproduce it...

@miquelcampos
Copy link
Member Author

@jdrese I didn't check this yet. I didn't find the issue in the past but it was reported by several users.

@jdrese jdrese changed the title leg_2jnt_01 locket attr issue Shifter: leg_2jnt_01 locket attr issue Nov 29, 2018
@SimonBenAnderson
Copy link

SimonBenAnderson commented Jan 21, 2019

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

@zhollosy
Copy link

zhollosy commented Oct 2, 2019

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants