Layered blend per bone, based on condition?

Hi, I want to use a hit reaction animation montage on my character, based on multiple conditions.

Currently I’m using layered blend per bone with an upper body slot, so the hit reaction montage only plays from the waist up. that way I can use it while the character is walking.

However, I wanted to use the full body animation when the character isn’t walking (velocity = 0) and also use another bone blend that excludes the arms from the montage when the character is aiming or shooting (bIsAiming = true) and possibly also exclude both arms and legs when it’s aiming and walking simultaneously.

what’s the approach to do so?

Hi!

  1. Even if you want to use multiple conditions your code will probably decide if it will blend the poses or not, so I would probably use a Blend by bool at some point and drop all conditions in it’s variable.

  2. Can’t say if I understood what you need, but if you’re using Branch Filter as Blend Mode in the Layered blend per bone Node, you could ad these bones with -1 Blend Depth in the Branch Filters so it won’t affect it’s child bones.

Hope it helps.