Tommaso Sanguigni offers a plugin for Autodesk Maya called the keyBaker tool, which will bake the animation based on what is selected and save that bake to a file. You are then able to import or apply baked animations just by browsing the keyBaker tool’s import tab.

“This plugin bakes the animation on the selected objects and save the bake on a file. You can then import and apply the baked animation just by browsing the bake file in the Import tab.”

“For each selected object, the script saves the values of each published and keyable attribute for each frame in the selected interval. When you apply the cache, the script simply looks for each object in the bake and keys the relative attributes to the values saved in the bake.”