I’m trying to figure out how to place two text layers next to each other using expressions in AE.
I want to place them next to each other and have them stay next to each other, but if the text in front of the second text changes, the second text should adjust itself, staying next to the front text.
For example: Text Layer 1 displays: Marco Text Layer 2 displays: Polo
So they would be next to each other like Marco Polo
But if I change Marco to Sam, the first text is shorter, so the second text will have to move a bit to the left and be shown as Sam Polo instead of Sam_____Polo. Or if I change the first text layer to a longer name, like Nathaniel, the second text should move more to the right so that it will look like Nathaniel Polo and not that the first text layer will go over or squish the second layer.
I hope this makes sense and that you understand what I mean. I want to use expressions/coding to do this.
If ever the words are too long and they have to descend to the next line, things get a lor more complicated. I imagine the simplest case would be 2 words, left justified texts. Second word should have this attached to the position. They should also be consecutive in the timeline, meaning the first word should be the layer above the second word.