Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
I don't follow. What you are trying to do can easily be done with just a single text layer in a single comp, soem text animatoirs and some source text expressions to insert line breaks, count the characters and make sure there's always a colored dot at the end. It seems to me you should focus on brushing up on text animators rather than trying to hack your way through this. Sure, it takes time to understand, but can save you a ton of complication.
Mylenium
Copy link to clipboard
Copied
Copy link to clipboard
Copied
*deleted message*
Copy link to clipboard
Copied
*deleted message*
Copy link to clipboard
Copied
You can use the sourceRectAtTime Expression method but to obtain the end of a line is impossible for a multi-line Text Layer. You'll have to break this up into 2 Text Layers; where the last line of text is on its own Text Layer - a single line of text. Then, use sourceRectAtTime to obtain the right edge of this Text Layer.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now