FORUMS: list search recent posts

Text box in one layer

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Davide Dante
Text box in one layer
on Nov 27, 2019 at 12:42:36 pm

Hi guys,

I am trying to achieve a dynamic text box within the text layer.

I'm aware of the technique of assigning a script to a box layer, so that if resize and position behind the text box:

s=thisComp.layer("Text");
w=s.sourceRectAtTime().width;
h=s.sourceRectAtTime().height;
[w,h]

but I don't want to have a separate layer for the box! This because I need to use this massively for my projects and when i paste the text and box i have to edit the script manually to match the name of the text layer (so "Text" becomes "Text 2", "Text 3" and so forth)

I found a partial solution to my problem, which is inverting the alpha. I use the drop shadow to create a controllable offset around the text, so that the box is not too tight around the text:



The only issue here is that the text is transparent :-\ I can't find a way to assign a color to it. Any clues?


Return to posts index

Cassius Marques
Re: Text box in one layer
on Nov 27, 2019 at 1:01:05 pm

adding a cc composite effect with RGB unchecked would put your original text back over it

Cassius Marques
http://www.zapfilmes.com


Return to posts index

Davide Dante
Re: Text box in one layer
on Nov 27, 2019 at 1:17:47 pm

Awesome! Your tip made the trick ☺

I post the AE file with both technique for the grab. Cheers!

13928_textboxonelayer.aep.zip


Return to posts index


Davide Dante
Re: Text box in one layer
on Nov 27, 2019 at 1:54:18 pm

Improved ☺

13929_textboxonelayer.aep.zip


Return to posts index

Tomas Bumbulevičius
Re: Text box in one layer
on Nov 29, 2019 at 9:13:03 am

You could also just place text layer above the box and define 'layer' by setting it index to s=thisComp.layer(index-1);

No need to update names, works as long as you do not mess up the orders.

Find out more:
After Effects Tutorials: motion design, expressions, scripting.
Boxer - Dynamic Text Boxes Template with a Live Preview


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]