This script works best when you split your animation into multiple layers. If this would be a character animation the best approach would be to have every limb on a different layer.
I'm glad you found the script helpful. :)