Highlighted

Empty text layer turns off another layer

New Here ,
Aug 17, 2020

Copy link to clipboard

Copied

Hi,

I'm after some expression help.

I have a text layer with a bullet point made from a shape layer.

When there is no text in the text layer I want the bullet point to have 0% opacity and when there is text in the text layer, I want the opacity of the bullet point to be 100%.

 

Any ideas?

 

Thanks in advance

Leigh

Most Valuable Participant
Correct answer by Mylenium | Most Valuable Participant

Could be something like

 

mText=thisComp.layer("XYZ").text.sourceText;

if (mText.length != 0) {100} else {0}

 

Mylenium

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

Empty text layer turns off another layer

New Here ,
Aug 17, 2020

Copy link to clipboard

Copied

Hi,

I'm after some expression help.

I have a text layer with a bullet point made from a shape layer.

When there is no text in the text layer I want the bullet point to have 0% opacity and when there is text in the text layer, I want the opacity of the bullet point to be 100%.

 

Any ideas?

 

Thanks in advance

Leigh

Most Valuable Participant
Correct answer by Mylenium | Most Valuable Participant

Could be something like

 

mText=thisComp.layer("XYZ").text.sourceText;

if (mText.length != 0) {100} else {0}

 

Mylenium

Topics

Expressions

Views

22

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
Aug 17, 2020 0
Most Valuable Participant ,
Aug 17, 2020

Copy link to clipboard

Copied

Could be something like

 

mText=thisComp.layer("XYZ").text.sourceText;

if (mText.length != 0) {100} else {0}

 

Mylenium

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
Reply
Loading...
Aug 17, 2020 0
New Here ,
Aug 17, 2020

Copy link to clipboard

Copied

That works perfectly. 

Thanks for your help

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
Reply
Loading...
Aug 17, 2020 0