Change animation values via scripting?

So let’s say I wanted to move something to a position with an animation, but that position changes every time I want to do it, like moving an object towards a specific door chosen at random out of a bunch of doors that are all in different positions. Is there any way to change the transform.position/rotation/scale/etc values on a specific frame of an animation through scripting?

You can access the individual keyframes of an animationclip, but why dont you move your object purely by code? Might be simpler…