Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Text & Text Box Expression

  • Text & Text Box Expression

    Posted by Jeff Horowitz on May 21, 2014 at 2:45 pm

    I’ve been using this expression to tell a text box to disappear when there’s no text: thisComp.layer(1).text.sourceText.length>0?100:0

    But I have three layers, and I want an expression that tells the box only to disappear when both texts disappear:

    1: text box shape layer
    2: text 1
    3: text 2

    thisComp.layer(1).text.sourceText.length>0?100:0

    JAH

    Dan Ebberts replied 12 years, 2 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    May 21, 2014 at 5:07 pm

    This should work:

    ((thisComp.layer(1).text.sourceText.length > 0) || (thisComp.layer(2).text.sourceText.length > 0)) ? 100 : 0

    Dan

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy