Expressions for creating 1-5 lines of text in 1 .mogrt template?
I want to create only 1 .mogrt file, but with the option of writing 1-5 lines of text.
Right now I have 5 comps. One with 1 text layer, one with 2 text layes, one with 3 and so on up to 5.
The reason for creating a text-layer for every text is because the last sentence need to have a dot behind it. So I created a dot that followed the length of the text using expressions.
I therefore see 2 options. Option 1 is:
It would be easy to reveal the comps with a slider, but then how do I change the text?
Because then in the first composition there would be only 1 text-layer, but in the 5th composition there would be 5 text-layers. So somehow I need to make a template where you can write 1-5 layers of text.
It's very difficult because you can't link everything to 1 Source Text, because one comp has only 1 and other comps have 2-5.
Option number 2 is:
Make it possible for the dot to follow the leading of the text, then it would follow the last sentence no matter how many lines of text there is. I would be able to make 4 enters above the sentence which would give me the abillity to create up to 5 lines. But then I also need a fix to make the text always being centered on both X and Y, since the dot always have to follow the LAST sentence only.
Maybe there is a 3rd option that i just can't think of? I've attached the project-file and 2 screenshots below. That way you're able to watch how my expressions work already, thought it might would help.
In the .mogrt file you ONLY have to be able to change the text. So don't worry about if it only works with one font or other settings wont work.
Link: https://www.dropbox.com/s/njag4u51xqlf753/Dot_Text.aep?dl=0
REALLY hope someone can help, because it's too advanced for me, but would really help my workflow, because right now I have 5 different mogrt files. Thank you for your time!


