ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Avoiding checkbox control on opacity

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Lucy-Rae Naylor
Avoiding checkbox control on opacity
on Oct 5, 2019 at 12:58:20 pm

Hi guys,

I'm currently setting up a template for others to use and was hoping to get around having to use a checkbox control in Effects Control

E.g:

Layer 1 is visible
Layer 2 is shyed and locked away

I would like to make it so when Layer 1's physical layer toggle is turned off Layer 2's opacity/layer toggle is 0/off.

Is this possible at all?

Thanks!

Lucy-Rae


Return to posts index

Dan Ebberts
Re: Avoiding checkbox control on opacity
on Oct 5, 2019 at 2:22:12 pm

You can't control the eyeball toggle with an expression, but this should work for opacity:

thisComp.layer("Layer 1").enabled ? 100 : 0;


Dan



Return to posts index

Lucy-Rae Naylor
Re: Avoiding checkbox control on opacity
on Oct 6, 2019 at 12:13:43 pm

Thanks Dan, that’s perfect!

Lucy-Rae


Return to posts index

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