Home Website Youtube GitHub

IK gets created with values and rotate does not work

Hey!
I have been using the guides with no issues, but last week I created a guide and the IK ctrl had some values.
I used the script to remove them successfully but the issue is that the ctrl does not rotate. It translates just fine, and FK also works fine.

This also happens if I use the biped template guide provided.
Also searched the forum to check everything was parented under the arm effector, but still no change.
Any help would be very appreciated!!!

Hi welcome to the forum,

  1. What script are you referring to?

  2. Do you have this attribute checked? It makes it so there are 2 separate controls for rotating and translating the IK. So rotating won’t do anything. And the translation control won’t rotate anything.

image

1 Like

Wow! Thanks for the quick reply!!!

It was the Ik separated thing!!! Thank youu!

And this was the script you had shared in a previous post, this part I had to do because it had information in the rotate channels, but it worked super fine.

import pymel.core as pm
from mgear.core import transform
from mgear import rigbits

def fix_ik_hand_orientation(side):
ikCns = pm.PyNode(‘arm_{}0_ikcns_ctl’.format(side))
ikCtrl = pm.PyNode(‘arm_{}0_ik_ctl’.format(side))
handChildren = ikCtrl.getChildren(type=‘transform’)

transform.matchWorldTransform(ikCtrl, ikCns)
transform.matchWorldTransform(ikCns, ikCtrl)
zeroOut = rigbits.addNPO(ikCns)[0]
zeroOut.rename('arm_{}0_ikcns_zero'.format(side))

for side in ‘LR’:
fix_ik_hand_orientation(side)

Thank you a lot!

1 Like