Hi guys,
For some time fighting with match ik/fk on Zup metahuman.
I`m reorienting leg and arms IK to match fk.
The trick works for arms, but with same logic for legs match IK/FK logic flips.
Many thanks for any hint on how you solve that.
my logic(based on @chrislesage mostly):
for side in 'LR':
ik_ctl= pm.PyNode('arm_{}0_ik_ctl'.format(side))
ik_cns= pm.PyNode('arm_{}0_ikcns_ctl'.format(side))
pm.parent(ik_ctl, None)
ik_trans = ik_ctl.getChildren(type='transform')
pm.parent(ik_trans, None)
pm.parent(ik_ctl, ik_cns.getParent())
pm.parent(ik_cns, ik_ctl)
transform.resetTransform(ik_cns, t=True, r=True, s=True)
npo_ikctl=rigbits.addNPO(ik_ctl)[0]
pm.parent(ik_trans, ik_cns)