ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Create radial opacity ramp using just expression

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Anmol Mishra
Create radial opacity ramp using just expression
on Dec 3, 2017 at 9:17:55 am
Last Edited By Anmol Mishra on Dec 3, 2017 at 9:46:16 am

Hi.

I want to place a still on layer 0 and a video on layer 1.
I want the opacity of layer 0 to vary from 0% in the center to 10% at the edges.

Distance from a point is

length(thisComp.layer(0).position, [960,540] )

Normalize this over 1.

length(thisComp.layer(0).position, [960,540])/length([0,0], [960,540])


And transparency from 0-10% would be

length(thisComp.layer(0).position, [960,540])/length([0,0], [960,540]) * 10




Does this sound right ?

I am essentially trying to create an opacity ramp that goes from 0 in the centre to value x at the extremes.


Thanks!


Return to posts index

Anmol Mishra
Re: Create radial opacity ramp using just expression
on Dec 3, 2017 at 9:54:32 am

Got the answer

https://forums.adobe.com/thread/1928460

Easier to do this without expressions


Return to posts index

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