Small script that redistributes keyframes by motion
This Blender script redistributes the timing of an object’s keyframes across the entire scene timeline based on how much the object moves between them. Instead of spreading keyframes evenly, it measures the amount of location change and rotation change between each pair of keyframes, applies user-defined weighting factors to each (so you can decide whether movement or rotation matters more), and then proportionally spaces the keyframes across the scene’s start and end frames. The result is that small movements happen closer together in time, while larger motions or rotations stretch out more time between keyframes, giving a more natural timing to the animation.
In other words, this script redistributes an object’s keyframes across the scene timeline so that larger movements or rotations take more time and smaller changes take less.
https://hub.openingdesign.com/OpeningDesign/Utility_Apps/commit/8f2b751c373cd64bd1749e8fa3eab0dd11f33561



