1

How do make a layer visible only when overlapping other layers in After Effects.

Below are the layers:

What I'm getting

I want the shadow from the bow to only be visible when over the verticle lines.

Below are the layers in the pre-comp:

The layers in question.

Above is the semi-transparent stroke as the shadow if the bow and a repeated verticle stoke. I want that shadow layer to only be visible over the verticle lines. How can I achieve this?

2

You can use a Track Matte. If your vertical lines aren't already precomposed, precompose them. Duplicate the Precomposition in your main composition. Place the shadow layer between the two precomps. Set the shadow layer's TrkMat setting to Alpha. (If you can't see the Track Matte [TrkMat] dropdown press the Toggle Switches/Modes button at the bottom of your screen).

  • Thank you, it worked and definitely helps to sell the illusion of 3d. – WB Creative Oct 15 at 9:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.