Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Create radial opacity ramp using just expression

  • Create radial opacity ramp using just expression

    Posted by Anmol Mishra on December 3, 2017 at 9:17 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!

    Anmol Mishra replied 8 years, 5 months ago 1 Member · 1 Reply
  • 1 Reply

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy