Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Hide a Layer if Number in Text Layer =1

  • Hide a Layer if Number in Text Layer =1

    Posted by Sam Caino on June 6, 2017 at 12:03 am

    Hi Folks,

    This should be an easy one for you guys. Forgive me for my expression ignorance.
    I’m looking to hide a layer in a composition when the number in a text layer is “1”. When the number is anything but “1”, I want that layer to be visible. Can anyone guide me on that?

    Thanks in advance!

    Dan Ebberts replied 9 years, 1 month ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    June 6, 2017 at 5:07 am

    Something like this should work:

    if (thisComp.layer(“Text Layer”).text.sourceText == “1”) 0 else 100

    Dan

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