Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Link mask to shape later

Explorer ,
Jan 03, 2020 Jan 03, 2020

Hi, i'm a beginner.

I'm trying to create a simple composition where a text change color when a shape layer pass through this text. The background is blue a text is white, when a big white square rotate over this text (obv the anchor is in bottom left) the text should become blue as text the backgroung and then become again white.

I thought to duplicate the text layer and apply a mask that follow the rotation of the square level but i can't do it, i've tried also with null object.

Is there a solution for it. I think it should be easy.

Thanks

TOPICS
How to
353
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 03, 2020 Jan 03, 2020

User a duplicate/ pre-composition of the rotating square as a track matte.

 

Mylenium

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 03, 2020 Jan 03, 2020

Thanks mylenium. Could you explain me better please?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 03, 2020 Jan 03, 2020

Track mattes allow you to use one layer to determine the visibility of another. Outlined here: https://helpx.adobe.com/after-effects/using/alpha-channels-masks-mattes.html

For your specific example, you have your shape and your text:
Annotation 2020-01-03 111057.jpg

 

Create a duplicate of your shape layer, and move that above the text layer. Make a duplicate of your text layer, as well. Go ahead and change the color of this second version of the text. 
Clipboard Image (2).jpg


If your Modes column is not visible, reveal it. You can do this by right-clicking in the header bar of the timeline columns:
Clipboard Image (1).jpg

...and/or it is often just hiding behind the Switches column (they share space, since they're the two most commonly-used columns here). There's a button at the bottom that allows you to toggle, or you can swap them by pressing the F4 key. 
Annotation 2020-01-03 111604.jpg
Now that you have the Modes column open, on your upper text layer ("Some text 2", in my example), set the Track Matte mode to Alpha Matte. It will use the layer directly above it to determine the visibility of THIS layer. 
Annotation 2020-01-03 112019.jpg
You should now see this second version of the text (blue in my example), only where that square exists. 
Based on your description, I would now parent the top square (layer 1) to the bottom one (layer 4), so you only need to keyframe one of them. If your text will be moving at all, go ahead and parent those together as well. 

Clipboard Image (4).jpg

Let us know if you have additional questions! 
There are other ways to achieve this effect (that involve fewer duplicate layers), but this one seemed the most straightforward to explain. 

To answer your original question, yes, it's possible to link a mask to a shape layer, but you'd likely need to offset the positions to make them visually line up, which would end up being more complicated for a user not familiar with expressions. 

Good luck!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 05, 2020 Jan 05, 2020
LATEST

Thank you very much!

 
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines