Using Python in the script editor, I am currently moving my skeleton using motion capture data. For times when the data jumps to an inaccurate place or when there are gaps in the data, I want to use Inverse Kinematics logic to know where to move the bone.
Specifically, I would prefer to know the coordinate locations of where the bone head and bone tail would end up if inverse kinematics is applied and we know the locations and rotations of the bone's parent and its child. Is there a formula or Python code to calculate this?
edit: the reason why I can't manually set up inverse kinematics to do this is because when combined with my method of moving the armature with the mocap data, it totally freaks out so I want to do it case by case manually for a specific frame and bone when I need it