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

AE expression for "length of text layer" for lower thirds nameplate

New Here ,
Nov 06, 2008 Nov 06, 2008
Hello everyone,

Is there a way to measure the total width (and height) of a text layer, to automatically update the length (and height) of a shape layer? I produce web news segments with 7-15 lower thirds displays for each video. I'm looking for a more efficient way to re-size each nameplate. Currently I manually re-size each shape layer to fit the name. Is there an expression that will update the shape layer, based on the length (in pixels) of the text layer?

See an example video of what I'm talking about:
http://dallasvoice.com/dvtv_track.php?s=345
(look for the nameplates that animate in at the beginning of each interview)

I've read everything I can get my hands on, but nothing has helped. Any help would be appreciated!
-RY
TOPICS
Expressions
7.7K
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 ,
Nov 06, 2008 Nov 06, 2008
>Is there a way to measure the total width (and height) of a text
>layer, to automatically update the length (and height) of a shape
>layer?

Nope. You need to apply a sampleImage() to your text layer and probe for its min/ max dimensions. Check Dan Ebberts' collision detection example on his site ( http://www.motionscript.com ) for reference.

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
Nov 07, 2008 Nov 07, 2008
Here's a Community Help search that brings up a few different answers.

I think that the best solution is the one on the AE Enhancers site linked to from the last line of this page .
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 ,
Dec 10, 2008 Dec 10, 2008
LATEST
Don't know about expressions, but you can do it through scripting. Boy, was I glad when they added that.

-Rich
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