This is a script that retargets skeleton translations.
Step:1 Create base rig skeleton (A-Pose/T-Pose) press first button.
Step:2 Import Animation (see all the translations get messed up) click button 2.
-Writes the base skeleton translations to a file
-Gets current Time
-Sets time range
-Retargets the translations to imported animation
-Bakes all keys
-Sets root to 0 0 0
-Ignores Pelvis joint
-no need to select anything button does everything