0

I am a beginner in After Effects. I came to know the TrkMat - Alpha Inverted Matte "Text" option to make the text transparent within a shape like the below image.

enter image description here

But when I move the text outside of the shape, it will stay as transparent.

Is there any way to make the text non-transparent when moving out of the shape like the below image?

enter image description here

So that when an animation occurs, the text will be non-transparent at first and the portion going inside the shape will become transparent immediately. Please help me to know if I can do this. I couldn't find any solution from the internet.

1

It's harder to do than it should be, I guess because AE is layer-based rather than node-based like Fusion etc.

You're going to have to make a copy of both of your layers, parent each copy to the original layer – so you only have to move one of each – and arrange them so that your layer stack looks like

text
solid
solid
text

(or vice versa). Now make the bottom solid a track matte for the text layer, using alpha-inverted, so that the text is only visible where the solid isn't, and make the top text the track matte for the top solid, once again using alpha -inverted, so that it punches a hole in the top solid layer. The top solid will form the left hand part of the design and the bottom text the right side.

You could also use just the original layers and have one of them use difference mode, pre-comp them both and then use a extract effect to turn the black parts into transparency, but you'll then have to do the animating in a separate comp, which can make it harder to work with.

There is also the Set Matte effect. A lot of people struggle with this effect, it's a lot less intuitive than the slightly more complicated solutions above, so you'll have to do some research. A good explainer video here.

| improve this answer | |
  • Thanks a lot and that worked like a charm. – Arun May 16 at 11:15

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.