This is caused by a limitation of the Animator. Once a transform vector is animated, the channel is binded to the Animator and cannot be altered from an external source, like a script.
Workaround: One way to work around this problem is to use an additional GameObject in the hierarchy for your script transforms, keeping them independent from the animated GameObjects, although in the same hierarchy.