Skip to content

Commit

Permalink
Merge pull request #437 from mgear-dev/master
Browse files Browse the repository at this point in the history
Epic_foot_01 and foot_bk_01 Connector missing footCnx definition fixe…
  • Loading branch information
miquelcampos authored Nov 28, 2024
2 parents 80a7fb2 + 3975feb commit 63bd639
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,12 @@ def connect_leg_ms_2jnt_01(self):
)
pm.connectAttr(self.parent_comp.blend_att, bc_node + ".blender")

# add message connections to parent component.
# this connection will be used to track the ctl relation when IK/FK
# match is performed
self.parent_comp.root.addAttr("footCnx", at="message", m=False)
self.root.message >> self.parent_comp.root.footCnx

return

def connect_leg_3jnt_01(self):
Expand All @@ -496,8 +502,15 @@ def connect_leg_3jnt_01(self):
pm.parent(self.root, self.parent_comp.ik_ctl)
pm.parent(self.parent_comp.ik_ref, self.bk_ctl[-1])
pm.parent(self.parent_comp.ik2b_ikCtl_ref, self.bk_ctl[-1])
pm.parent(self.parent_comp.match_fk3, self.bk_ctl[-1])
pm.parentConstraint(
self.parent_comp.tws3_rot, self.fk_ref, maintainOffset=True
)

# add message connections to parent component.
# this connection will be used to track the ctl relation when IK/FK
# match is performed
self.parent_comp.root.addAttr("footCnx", at="message", m=False)
self.root.message >> self.parent_comp.root.footCnx

return
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,12 @@ def connect_leg_ms_2jnt_01(self):
)
pm.connectAttr(self.parent_comp.blend_att, bc_node.blender)

# add message connections to parent component.
# this connection will be used to track the ctl relation when IK/FK
# match is performed
self.parent_comp.root.addAttr("footCnx", at="message", m=False)
self.root.message >> self.parent_comp.root.footCnx

return

def connect_leg_3jnt_01(self):
Expand All @@ -520,8 +526,15 @@ def connect_leg_3jnt_01(self):
pm.parent(self.root, self.parent_comp.ik_ctl)
pm.parent(self.parent_comp.ik_ref, self.bk_ctl[-1])
pm.parent(self.parent_comp.ik2b_ikCtl_ref, self.bk_ctl[-1])
pm.parent(self.parent_comp.match_fk3, self.bk_ctl[-1])
pm.parentConstraint(
self.parent_comp.tws3_rot, self.fk_ref, maintainOffset=True
)

# add message connections to parent component.
# this connection will be used to track the ctl relation when IK/FK
# match is performed
self.parent_comp.root.addAttr("footCnx", at="message", m=False)
self.root.message >> self.parent_comp.root.footCnx

return

0 comments on commit 63bd639

Please sign in to comment.