ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Double Exposure in AE

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Allen Bian
Double Exposure in AE
on Jan 17, 2018 at 2:20:43 am

hey Guys, need some help with AE expressions... So my goal is that have 1 or 2 lines of expression on Opacity of a picture or solid layer and when you duplicate the layer, the opacity will change automatically. For example, the first layer is 100%, and when you duplicate it, the new layer will be 50% and the next one will be 33% so on....
The expression should be a index one, i am not sure what exactly it is, something like index>1 bulabulabula..

Thanks!


Return to posts index

Dan Ebberts
Re: Double Exposure in AE
on Jan 17, 2018 at 4:24:28 am

Try this:


index*100/thisComp.numLayers;


(assumes all layers are participating)


Dan



Return to posts index

Allen Bian
Re: Double Exposure in AE
on Jan 17, 2018 at 7:53:09 am

Thanks for helping me, but can you be more specific for me?

In my workspace, I created 10 layers since I don't know how to write an automatic expression on Opacity, so the opacity of my first 'Image Choice_1' layer is 100%, and I wrote this on 'ImageChoice_2' layer: ' if(thisComp.layer("ImageChoice_1").transform.opacity>=100) 50 else 100; '.

How to add your expression(index*100 thisComp.layer) to mine?


Return to posts index


Dan Ebberts
Re: Double Exposure in AE
on Jan 17, 2018 at 2:02:42 pm

I'm not sure why you would need to combine expressions. If you apply my expression to each layer, you should get this for 1 layer:

100

this for 2 layers:

50
100

this for 3 layers:

33
67
100

this for 4 layers:

25
50
75
100

etc.

Isn't that what you wanted?

Dan



Return to posts index

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