2

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. – Hans Meiser Apr 13 '16 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. – Hans Meiser Apr 13 '16 at 18:58
  • 1
    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. – Caitlin Apr 13 '16 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 – Caitlin Apr 13 '16 at 21:35
  • 1
    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? – Caitlin Apr 14 '16 at 0:44
0

So, if we will continue analogy with Lego blocks:

  1. First you need add On & Off effect for your blocks. You can find here how.
  2. Then you shall add Collision detection. You can find about it here.
  3. Now you need to trigger On & Off effect when your object (mask?) collide with block.

I never tried it myself, but now really want to test it!

  • Thank you so much! This is great thank you!! to clarify the way you are suggesting would mean I am copying the code from the collision detection into the on/off effect? It seems the code may be used in itself to have an on/off effect, by saying its on (100% opacity) when it detects collision and off (30% opacity) otherwise. If this is possible, where in the layer would you put the collision code if you did not use the on off effect? – Caitlin Apr 14 '16 at 14:16
  • Once again, I don't have experience in doing it myself. You shall try it couple different ways on 2-3 objects, and when you will find correct way, just do it for whole project. – Shultc Apr 14 '16 at 21:01

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.