I'm trying to make a pymel script in Maya where I want to transfer an animation from one rig to another. Right now the script is transferring the keyframes from the orignal rig to the other, but it ignores the joint orientation. I have the mathematical formulas but I am unsure of how to use them in Pymel, since it's not my primary language.
The Formula: "s" is for the rig source and "t" is for the targeted rig.
As of now I have the isolated Rotation, but I am unsure of how to get the worldSpaceRotation and translatedRotation.
If anyone could help or give me some pointers that would be deeply appreciated! I can send my current code if needed.