Weird Joint Orientation in Maya

Hello guys and gals :D:

I would really appreciate if You could help me out with my little problem :wink:

I am working on re-targeting tool for Autodesks Maya 2012 and I have noticed rather annoying thing :?:

Every time I multiply joint transform matrix, Maya is resetting my joint orientation back to world coordinates and instead it’s adding those values to my joint rotation :curses:

Is there any way to keep the orientation locked when I apply new transforms to the joint ???

Thanks a bunch for taking your time :cool:

What is the process that you’re using for retargeting?

Hey Brian, thanks for responding back :):

Lets say that I want joint B follow the motion of joint A

on the frame 0 both joints are in their own original bind pose although they are both oriented in their own way and on the frame 10 joint A has rotation on all axis

Here’s what I do :
|A| = joint A transform on frame 0
|B| = joint B transform on frame 0
|ROT| = joint A transform on frame 10

|B|’ |A| = |REF| = transform difference joint A and B on frame 0

|REF|’ |ROT| = re-targeted transform for joint B on frame 10

That puts my joint B right in sweet spot on that frame 10 but its orientation is set back to world coord’s and instead Maya dump that orient into its rotation value :?:

Any ideas ??
If You need any more information let me know ,

Thanks again for looking into that :):

Dan