How to recover from partial ragdoll?

I’ve seen some tutorials on how to recover from ragdoll to animation using a pose snapshot. My problem when trying to do this for only a partial ragdoll (e.g. just the arm), is how do I blend the snapshot of the ragdoll arm with the rest of the body animation, while it’s transitioning back from ragdoll?

For example, the character is in an idle pose, and I want to ragdoll the arm, then go back to idle pose.

I can do it with a layered blend per bone to blend between ragdoll arm and Idle, but I have to know which bones to mask out (i.e. the arm being ragdolled).


image

Is there a different method I can use so that I can blend ANY partial ragdoll with the rest of the body animation?