Animation read via data table and set in C++

Hello. I’m working on a game and I need some help finalizing my idea so we can implement it. I basically want to make a custom node in the anim BP via C++ to have 2 inputs. 1 input would be a variable read from the character’s logic BP. It would essentially be the character’s current state. The second input would be a data table for which the matching state, animation name and interpolation value are read and fed into the animation BP. The output from the node would be setting the final animation pose based on the animation name read from the Data table. Would this be possible? How could I go about doing it so that I can make it global for each character so I’d only have to maybe change the data table being read and the name of the character? Any help would be appreciated.