Forums › Adobe After Effects Expressions › Create radial opacity ramp using just expression
-
Create radial opacity ramp using just expression
-
Anmol Mishra
December 3, 2017 at 9:17 amHi.
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!
-
Anmol Mishra
December 3, 2017 at 9:54 am
Viewing 1 - 2 of 2 posts
Log in to reply.