ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Hide a Layer if Number in Text Layer =1

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Sam Caino
Hide a Layer if Number in Text Layer =1
on Jun 6, 2017 at 12:03:17 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!



Return to posts index

Dan Ebberts
Re: Hide a Layer if Number in Text Layer =1
on Jun 6, 2017 at 5:07:28 am

Something like this should work:

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


Dan



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]