Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Expressions for creating 1-5 lines of text in 1 .mogrt template?

New Here ,
Sep 30, 2019 Sep 30, 2019

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!

 

pic01.PNGpic02.PNG

892
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 30, 2019 Sep 30, 2019

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 01, 2019 Oct 01, 2019
Hi Mylenium. I think you're totally right and maybe I'm making it much more complicated than it is, but I dont know how to continue from here, thats probably the issue. For my level i've hit a dead end and don't know how or where to learn the next part, since tutorials on this probably isn't possible, because it's a too specific topic 🙂
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 01, 2019 Oct 01, 2019

*deleted message*

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 01, 2019 Oct 01, 2019

*deleted message*

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Oct 01, 2019 Oct 01, 2019
LATEST

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.

 

Very Advanced After Effects Training | Adaptive & Responsive Toolkits | Intelligent Design Assets (IDAs) | MoGraph Design System DEV
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines