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

Automatic displaying Titel Save Area in a MOGERT

New Here ,
Jul 20, 2021 Jul 20, 2021

Copy link to clipboard

Copied

Hi Community, I am looking for a way to display a red titel save boarder in a mogert. If users enter text which is to narrow to one side of the screen, the red border should show that your in the illegal area. Any Ideo how to solve that via expressions?

 

Thanks for help.

TOPICS
Expressions

Views

81

Translate

Translate

Report

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
Community Expert ,
Jul 20, 2021 Jul 20, 2021

Copy link to clipboard

Copied

LATEST

You'll need to use sourceRecAtTime() on the opacity property to get the width of the text layer, something like:

 

txtWidth = thisComp.layer("Text").sourceRectAtTime().width;
if (txtWidth > 500) {
    100
} else {
    0
}

Votes

Translate

Translate

Report

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