Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


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

21

Likes

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
Adobe Community Professional ,
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
}

Likes

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