On the technical side if the end result is you need this value in the anim BP, just calc it in the anim_bp.
If you want to calculate and set the variable in the character class and use it in the anim bp, then simply get ref to character class and get the variable.