2

I want to create a track matte/mask that is applied to multiple layers. The layers should not be precomposed!

How could I achieve this, that I can just change the matte shape and this is reflected to any of the layers. Because currently only the layer right below the matte is masked accordingly, other layers not.

1 Answer 1

3

You can use the silhouette alpha or stencil alpha modes on a matte layer, which will matte any layers below it.

Or if that doesn't work for the composition you can use expressions. Here's how: make your first matte layer, with its mask, and then duplicate it and put it over another of the layers you want to matte. Now with both matte layers selected press m to show the mask path property for both. Select only the new layer, and while holding alt/option click on the stopwatch next to the mask path property to add an expression to it. You'll see a pick-whip (the spiral thing) next to the expression. Click and drag the pick-whip to the mask path property of the original layer. It should say something like thisComp.layer("the name of the original matte layer").mask("mask1").maskPath expression linking mask shapes To make those layers follow the original matte layer they shoul be parented to it as well.

Of course the simpler, faster to render way is to precompose the matte layer on its own and use copies of that comp as your matte layers. Why was it you don't want to precomp?

4
  • But if I copy the precomposed matte layer, wouldn't I have duplicates, so I have to change each of them for animation changes lateron? I don't want to have a precomp of the layers where the matte is to be applied, as these are layers that must have some animation in the same precomp, and the mask should just be an addition. I'd prefer thus having the mask also inside the same composition as all the layers where the matte is to be applied. Dec 29, 2014 at 14:09
  • 1
    No, you use the same precomp with only the matte layer in it, so when you make one change you affect all the copies of that precomp. Note that if you need the original footage layer to guide where you put the mask you can add it to your pre-comp as a guide layer Layer>Guide Layer
    – stib
    Dec 29, 2014 at 14:13
  • Great that works very well for my case! Just one more question: what if I really would want to duplicate the matte/mask layer, and having individual masks. Can I also copy the precomposed matte and tell after effects to tread it as an individual composition decoupled from the other one? Dec 29, 2014 at 14:43
  • 1
    You'd have to go to your project window, duplicate the pre-comp and then use that duplicate to replace the pre-comp layer in the composition (select the layer in the composition and alt/option drag the new pre-comp from the project window to replace).
    – stib
    Dec 29, 2014 at 14:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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