-
Processing inverted opacity values
I am sad that after 15 years of AE my expression skills are still pretty rudimentary.
I have an adjustment layer controlling a “lights out” effect. When the opacity of the Lights Out layer is at 0 the effect is basically hidden. When the value is at 60 the room looks dark. Because I want the light sources in the image sequence to stay visible I am only raising the value to 60.
So what I am in effect trying to do is link the opacity of the Lights Out adjustment layer to the opacity of other layers but in reverse. I want the opacity value of 60 on my adjustment layer to equal 0 as an opacity. I want the opacity value of 0 on my adjustment layer to equal 100 as an opacity.
This is my sad attempt:
Thanks for being such a supportive community.
x= thisComp.layer("LIGHTS OUT").transform.opacity;
if (x = 60) x=100;