Skip to main content
Known Participant
January 3, 2023
Question

Tutorial: Automatic Lower Third Size

  • January 3, 2023
  • 1 reply
  • 309 views

// Use a text layer called NAME and one called FUNCTION. Use caps in the layer name!

// Put this script onto the position of a solid that you use to mat or cut the entire lower third.
// Set the cutting solid in the right position like you normally do, just this once to prepare it.
// The solid will now react to the length of the NAME and FUNCTION, depending on which is longest.

 

NW = thisComp.layer("NAME").sourceRectAtTime().width;
FW = thisComp.layer("FUNCTION").sourceRectAtTime().width;
b = (NW < FW);
[value[0]+(FW*b)+(NW*!b),value[1]]

This topic has been closed for replies.

1 reply

Mathias Moehl
Community Expert
Community Expert
January 4, 2023

Thanks for sharing! If you want even more flexibility and don't like to write your own expressions, you can also use my (paid) extension Pins & Boxes:

 

 

Get Pins & Boxes at https://aescripts.com/pins-and-boxes/

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects