<p>I think you could achieve this just by key-framing the Source Text control in your text layer.
Unless you have hundreds of them and need to do it programatically, I would just keyframe the changes of text, and the repositioning would happen automatically. 
If I have misunderstood what you mean, please add some screen shots to explain what you need.</p>

CC BY-SA 4.0
2020-05-29T14:28:53.903Z
Hi tomh, I think this will also accomplish what I need to do, IVE just never had to keyframe source text before. After checking out a video on YT, it looks pretty straightforward. Thanks for the tip!
SlothBucket
CC BY-SA 4.0
2020-05-28T11:27:59.477Z
2020-05-28T11:27:59.477Z
tomh
<p>I am looking to build an animation where in the middle of a sentence, a word gets deleted by character, then a new word is retyped on-screen and the back half of the sentence repositions as each letter is typed on. I tried to do some research and have a feeling this animation may need to utilize sourceRectAtTime or Delta expressions along with the type-on character text animator. What are your thoughts on accomplishing this?</p>

<after-effects>
How do I dynamically reposition part of a sentence based on the width of a word in the middle of the sentence that will change?
SlothBucket
# How do I dynamically reposition part of a sentence based on the width of a word in the middle of the sentence that will change?

(Asked by: username_0 on 2020-05-27)

I am looking to build an animation where in the middle of a sentence, a word gets deleted by character, then a new word is retyped on-screen and the back half of the sentence repositions as each letter is typed on. I tried to do some research and have a feeling this animation may need to utilize sourceRectAtTime or Delta expressions along with the type-on character text animator. What are your thoughts on accomplishing this?

**Tags:** after-effects


---

## 1 answers

### Answer by username_1 on 2020-05-28. Score: 0

I think you could achieve this just by key-framing the Source Text control in your text layer.
Unless you have hundreds of them and need to do it programatically, I would just keyframe the changes of text, and the repositioning would happen automatically.
If I have misunderstood what you mean, please add some screen shots to explain what you need.

> **Comments:**
> **username_0**: Hi username_1, I think this will also accomplish what I need to do, IVE just never had to keyframe source text before. After checking out a video on YT, it looks pretty straightforward. Thanks for the tip!  

---

