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

Automatic displaying Titel Save Area in a MOGERT

New Here ,
Jul 20, 2021 Jul 20, 2021

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