ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

AE expression that turns on a layer only if a certain layer is on?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Tara Devlin
AE expression that turns on a layer only if a certain layer is on?
on Dec 18, 2018 at 7:44:29 pm

Hi Everyone,

Does anyone know where I can find an expression that turns on a layer (via opacity) only if a certain layer is also on?

Is that possible?


Thanks,

Tara


Return to posts index

Scott McGee
Re: AE expression that turns on a layer only if a certain layer is on?
on Dec 19, 2018 at 11:16:48 am

Unless you're trying to do something else with it.

This should be fine.

if(thisComp.layer(index+1).active == true) 100 else 0;

for cc2019 as I've not upgraded. This should work based off what I've read.

if(thisComp.layer(index+1).active == true){
100
} else {
0
};


Return to posts index

Scott McGee
Re: AE expression that turns on a layer only if a certain layer is on?
on Dec 19, 2018 at 2:28:43 pm

Just realised when testing it, I didn't write it the other way round.

It wants to be 0 else 100

:)


Return to posts index

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