You can expose to variable o bind the animations
So you can change the weapon idle with a simple direct event from the weapon or the character, y put the animation in the weapon.
BTW
and you don´t neet duplicate code like you do in the post, check “cached poses”