Creative Communities of the World Forums

The peer to peer support community for media production professionals.

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 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

    December 3, 2017 at 9:54 am

    Got the answer

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

    Easier to do this without expressions

Viewing 1 - 2 of 2 posts

Log in to reply.

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