Getting reference to widget animation in c++

Hi, is there a function in UUserWidget class to get animation from the widget blueprint? I know how to get textblocks, images etc. with GetWidgetFromName but is there equivalent for animations or is the only way to set these in the blueprint editor?