Skip to content

Commit

Permalink
Shifter: Improve IK/FK matching for legs + foot closes #92
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelcampos committed Jul 14, 2022
1 parent 8210f5a commit 929867a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion release/scripts/mgear/core/anim_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1851,10 +1851,16 @@ def getChangeAttrName(self):

def getChangeRollAttrName(self):
# type: () -> str
return "{}.{}".format(
at_name = self.switchedAttrShortName.replace("blend", "roll")
at = "{}.{}".format(
self.getHostName(),
self.switchedAttrShortName.replace("blend", "roll"),
at_name
)
if pm.objExists(at):
return at
else:
return self.ikCtrl[0].attr(at_name)

def changeAttrToBoundValue(self):
# type: () -> None
Expand Down

0 comments on commit 929867a

Please sign in to comment.