Animation snapping

I need a creative solution to an animation problem. I have ledges in my scene, and through the sequencer, I’ve added a character jumping on the ledges. that’s all fine in the sequencer. the problem is, these ledges have a random bobbing movement attached to them, so even if I key the character to jump at the right time in the sequencer, in play mode they move randomly so he misses the ledge. This is not a controller character, just an npc. Is there away to somehow get the root of its skeleton to snap to each ledge? I attempted to attach it to each ledge via the sequencer by using the attach track, which works in theory, but it overrides the actual animation, so it just quickly snaps from one ledge to another.