Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Matte in Z Space Expression

  • Matte in Z Space Expression

    Posted by Christian Simpson on December 5, 2023 at 9:58 pm

    Hey All,
    I was wondering if anyone knew of a way to matte something out that was further away in zspace and combine it with an expression?

    I would like certain elements as they move further away to become invisible based on how far away they move in z space and come back when they move closer in.

    Christian Simpson replied 2 years, 8 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    December 5, 2023 at 11:57 pm

    Are you looking for something that fades a layer to zero opacity based on how far it is from the camera. Maybe like this:

    startFade = 3000;
    endFade = 4000;
    c = thisComp.layer("Camera 1").position;
    d = length(c,position);
    linear(d,startFade,endFade,100,0)
  • Christian Simpson

    December 6, 2023 at 3:29 am

    Amazing, thank you, that did the trick perfectly.

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