# Reveal entire layer in after effects with mask partial overlap

I'm looking for a way to reveal my entire layer when a portion of my mask covers the layer. I have a composition with multiple individual layers, that I want to reveal with a set matte. However lets say when 30 percent of the layer is covered I would like the entire layer to appear. When it's less than 30 percent the layer does not need to appear.

Another option may be a correlation between opacity and area covered. Like 20 percent covered 20 percent opacity, 60 percent covered 60 percent opacity, etc

• As far as i see, the way to go for this would be through expressions. Unfortunately AE "Expressions" don't seem to have a parameter to query individual mask points and thereby gather data to calculate the size they cover. I think it could be helpful if you described what you are trying to achieve, to enable others to think if there is another way than you are envisioning it. Commented Apr 13, 2016 at 18:56
• For example i didnt quite understand how (and why) the mask is changing its size, what the shape is (square, round, elliptic, complex) etc.pp. Commented Apr 13, 2016 at 18:58
• Sure! I am making a project that attempts to combine an art and music work. There are columns of pictures in the artwork. The masks key points are extracted from the audio of the music so that it becomes bigger at louder points. The mask I created is a rectangle placed in the center of the artwork. Since the artwork is a grouping of separate compositions, I would prefer for the pieces to appear together. Commented Apr 13, 2016 at 21:33
• To make an analogy, it would be like revealing lego blocks with a mask. You want them to be revealed with a mask, but the lego block is seen to appear as a single unit instead of partial pieces Commented Apr 13, 2016 at 21:35
• Right! I think I know what you mean, but I think I'm trying to do something a little different. I'll put more detail in lego terms to see. There is a wall of legos in the composition. I am revealing these separate layers (one for each block) with a mask (set matte) rectangle in the center whose scale is dictated by an audio file. So the louder the audio the more blocks are revealed. However what I want to change is that I want either a lego to appear or not. I do not want the mask to reveal parts of the block like it cuts into right now. Is that different from what it sounded like before? Commented Apr 14, 2016 at 0:44