Possible to Get Animation BP of component character without hard referencing it

HI. I Want to make an actor component that gets the animation Blueprint of a character mesh, and set values directly in it. Only Issue is that I want it to be character agnostic and So I don’t want to have to hard code a certian AnimBP REF in to the component. Is it possible to set the values in an anim BP of the component owner without a hard ref.
I Hope this made sense

you could try a few options:

  1. use an interface
  2. have the animbp listen for events
  3. create a parent class for any animbps so they can share whatever common functionality without knowing about specific child types

you get the animbp by GetPlayerCharacter->GetAnimInstance

edit: I just realized this is way old post. For some reason it showed up top in my feed.