Change start position of AnimationLink during runtime

Hi,is it possible to change the StartNode/EndNode during runtime of AnimationLink?
I’ve tried to add AnimationLink Component during run time but I find the root in GraphModifier is null,how to avoid this?