ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Spawn black rectangle behind text (subtitle)

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Joel Arvidsson
Spawn black rectangle behind text (subtitle)
on Dec 14, 2011 at 11:44:36 am

Hi I wonder if its possible to automatic show a black bar behind the text.
Im thinking like in word etc you have one option that is like a mark pen. Is it any similar effect in AE?

joelarvidsson@gmail.com


Return to posts index

Michael Szalapski
Re: Spawn black rectangle behind text (subtitle)
on Dec 14, 2011 at 3:33:52 pm

That feature isn't built in to AE, but you can fake it:

Duplicate your text layer.
Tie the duplicate's source text to the original with the pick whip.
Apply the Levels effect to the duplicate.
Go to the Levels channel drop down and choose alpha.
Crank it way up.
Apply Generate>Fill.
Choose black as the fill color.

That should work. My AE machine's in the middle of a render or I'd test this, but that sounds like the recipe I used when I had to do that. Now, you have to be sure the font, formatting, etc. is the way you want it before you do this. The only thing linked between the layers is the source text - not any formatting.

- The Great Szalam
(The 'Great' stands for 'Not So Great, in fact, Extremely Humble')

No trees were harmed in the creation of this message, but several thousand electrons were mildly inconvenienced.


Return to posts index


Kevin Camp
Re: Spawn black rectangle behind text (subtitle)
on Dec 14, 2011 at 4:06:24 pm

michael's method may work, but if you just want a solid bar/plate behind the text that changes size based on the text length, then this is the simplest recipe that i've found:
  1. add set channels to text layer and change 'set alpha to source:' to 'full'
  2. add the fill effect
  3. add cc composite

if you need to expand the rectangle around the text, add fast blur before the set channels effect and increase blur as needed.

to change the opacity of the bar/plate you can adjust the opacity of the fill effect and uncheck the 'rgb only' option in cc composite.

this method will add the bar/plate to the whole text field, if you need to add it to just a selection of text, like to highlight a word in a sentence, then you'd want to use a separate layer and create a mask to reveal just the portion around the text that you want to 'highlight'.

Kevin Camp
Senior Designer
KCPQ, KMYQ & KRCW


Return to posts index


Michael Szalapski
Re: Spawn black rectangle behind text (subtitle)
on Dec 14, 2011 at 7:51:54 pm

I like Kevin's method better. I always forget about CC Composite!

- The Great Szalam
(The 'Great' stands for 'Not So Great, in fact, Extremely Humble')

No trees were harmed in the creation of this message, but several thousand electrons were mildly inconvenienced.


Return to posts index

Kevin Camp
Re: Spawn black rectangle behind text (subtitle)
on Dec 14, 2011 at 9:42:45 pm

of course as soon as you do it with cc composite, somebody will ask 'could we put a drop shadow on that text?' and then you'll be splitting it up onto two layers... ;-)

Kevin Camp
Senior Designer
KCPQ, KMYQ & KRCW


Return to posts index

Joel Arvidsson
Re: Spawn black rectangle behind text (subtitle)
on Dec 16, 2011 at 7:28:07 am

Thanks Kevin and Michael! I did use Kevins suggestion and it worked perfect!

joelarvidsson@gmail.com


Return to posts index


Joel Arvidsson
Re: Spawn black rectangle behind text (subtitle)
on Dec 16, 2011 at 7:58:56 am

The only little setback is when you have two lines of text the black bar will be the full "textbox" (wich is always rectangular). So unless the second line of text is the same length ass the first you get a longer blackbar.

This I can live with or fix using two layers and mask away. I can also try not to use two line of text at the same time.

Cheers!

joelarvidsson@gmail.com


Return to posts index

Joel Arvidsson
Re: Spawn black rectangle behind text (subtitle)
on Dec 16, 2011 at 8:09:55 am

I think one solution could be if you would have a font with all characters is just a solid square. Then perhaps you could choose this font and not use the full textbox channel but instead the alpha of the text wich in this case would just be solid squares.

joelarvidsson@gmail.com


Return to posts index

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