Video není dostupné.
Omlouváme se.

A workaround for text alignment in After Effects essential graphics templates, two ways

Sdílet
Vložit
  • čas přidán 16. 09. 2021
  • In this tutorial I’m going to be showing you two ways to align text using a dropdown menu in the essential graphics panel. You may not need to use this every day, but I promise you if you work with templating and need to move text around a screen with your template this is something you’re going to run into eventually.

Komentáře • 20

  • @Max-mn1yx
    @Max-mn1yx Před 2 lety +2

    This is a genius workaround! Thanks so much

  • @trevormowry3476
    @trevormowry3476 Před 2 lety +9

    The way I deal with the multiple line issue in my templates is that I just make three variations of the same text layer. All are linked to the same source text, transform properties, etc. Each one is set to either left, right, or center in the paragraph panel. Then you use your same if statement structure combined with a dropdown to toggle the opacity of each. So you only see the correctly aligned layer.

    • @godaron104
      @godaron104  Před 2 lety +1

      This is also a clever workaround! Thanks for sharing

  • @joelcaporale5112
    @joelcaporale5112 Před 2 lety +7

    a = thisComp.layer("TEXT").sourceRectAtTime();
    height = a.height;
    width = a.width;
    t
    op = a.top;
    left = a.left

    if (thisComp.layer("Null 1").effect("Dropdown Menu Control")("Menu")==1)
    {
    x = left;
    }
    else if (thisComp.layer("Null 1").effect("Dropdown Menu Control")("Menu")==2)
    {

    x = left + width / 2;
    }
    else {
    x = left + width;
    }
    [x,top + height]
    Here's the expression for any one looking for it. You will still need to format it some as youtube does not allow me to post the script verbatim. Have a blessed day yall. Christ loves you.

  • @neusvich
    @neusvich Před 2 lety +2

    Thanks a lot for sharing this! I've been looking for a solution for the alignment problem for a while. Please, keep doing more of these. It's very refreshing seeing (hearing) other women make Ae tutorials!

    • @godaron104
      @godaron104  Před 2 lety

      Thank you! There are far too few of us in this space, when I hear another ladyvoice I'm always pleasantly surprised as well

  • @obentophaut8693
    @obentophaut8693 Před 2 lety +1

    Great stuff.

  • @rafaelopotenza
    @rafaelopotenza Před 10 měsíci

    Thanks for the video!
    It helped me get a solution to my case.
    I have two text layers ("Text - Right" with the right paragraph and anchor point on the right top side and "Text - Left" with the left paragraph and anchor point on the left top side).
    In the Source Text of the "Text - Right" layer I added this expression:
    const referenceText = thisComp.layer("Text - Left").text.sourceText;
    const style = referenceText.getStyleAt(0,0);
    style.setText(referenceText);
    *** So, if I change the text size in the Essential Graphics, it will be changed here as well.
    In the opacity of both text layers I will add what I want to lead the changes, in my case:
    controlX = thisComp.layer("Position - Global").transform.position[0];
    if(controlX >= 420) 100
    else 0
    I hope that helps someone!

  • @hmproductions5974
    @hmproductions5974 Před rokem

    Super Usfull, Thanks for sharing this 😍one thing can make it simpler
    instead of time remapping, Use 3 text layers each with a different alignment

  • @rod4s311
    @rod4s311 Před 5 měsíci

    Thank you!
    Unfortunately it's not ganna work as mogrt in Premier Pro (the second option). Didn't tryed first one

  • @dcustudio593
    @dcustudio593 Před 9 měsíci

    How does the editable field in Essential Graphics panel operate when you Time Remap and Pre-Comp?
    I notice it still appears (even though the text layer is pre-comp'd) -- so I assume it still functions.
    If that's the case, I suppose you just have to make sure you include that property (and any other ones you want included in the MOGRT) before pre-comping?

  • @bg9919
    @bg9919 Před rokem +1

    Good tutorial, but it's not working for me in Adobe AE 2022. I get an error saying "Undefined value used in expression". I've followed your code to a T. So weird.

  • @LEE-337
    @LEE-337 Před rokem

    The text size, font, and faux styles can not be changed in the mogrt using this method. Is there a work around?

    • @godaron104
      @godaron104  Před rokem

      Ah you like to make things complicated :) Off the top of my head, if I wanted to add a bunch of different text style options I would probably just make three different text layers (for left right and center alignment), link them to some source text and toggle their opacity using Trevor's method below. But if you wanted to continue to use this method in the video, you could create more source text keyframes at different seconds (4 sec, 5 sec, whatever) Either way, you'd have to insert more conditionals into your if/else statement in your source text eg. if ( a && b) {z;} else if ( a && d) {y;} etc.

  • @noorredom1950
    @noorredom1950 Před rokem

    my code does not work

  • @riigel
    @riigel Před 2 lety

    i have coded script that does this.

    • @raullc
      @raullc Před 2 lety

      Can you share it?

    • @godaron104
      @godaron104  Před 2 lety

      I'd love to see it if you have a github or blog - do share

  • @Tom10
    @Tom10 Před 8 měsíci

    The most major problem with using time remapping this way - you don't have ability to use any motion to text animation. Which, makes text blunt and boring :|

    • @godaron104
      @godaron104  Před 8 měsíci +1

      An important point! Not every tool will be right for the job