so i’m trying to match the position and orientation of two joint chains; and IK and FK and for some reason the my Ik wrist just isn’t aligning.
im using this to get the position from the FK
#select the joints we need
sel = cmds.ls(sl=True)
fkWrist = sel
fkShldr = sel
fkuElbow = sel
ikwrist = sel
ikpv = sel
#get positions from fk
fkwRaw = cmds.xform(fkWrist, ws=True, q=True, t=True)
fkwPos = om.MVector(fkwRaw, fkwRaw, fkwRaw)
and to move the Ik wrist into position I am using
#set position of IK wrist ctrl
cmds.move(fkwPos.x, fkwPos.y, fkwPos.z, ikwrist)
cmds.rotate(fkwPos.x, fkwPos.y, fkwPos.z, ikwrist)
Now while I’m still kind of experimenting so I don’t know if the cmds.rotate will give me what I’m looking for, I’m fairly certain that at the very least the cmds.move part should be work properly. I tried having usin my FK joint controls ,the IK wrist controls, and pv as my selections. I also tried using the FK joint controls, the ik handle, and pv as my selections.
After applying script
Before applying script
can anyone help me out here?