Jump to content
Sign in to follow this  
hello.ahay

TrkMatte - effect? (AE)

Recommended Posts

I'm absolutely sick to death of the TrkMatte drop down (you know the one, Luma, Luma Invert, Alpha, Alpha invert) that tracks the luma/alpha from the layer above... Is there an effect that does the same thing? ie allowing you to have just one layer in the comp that you can set multiple layers to track the luma/alpha. I've tried the various matte and channel effects but they don't track the alpha.

 

Thanks in advance.

Share this post


Link to post
Share on other sites

using the set Matte effect:

 

Go into the preComp where the matte object is nested, twirl open Transform and option/alt click on Position, then add this expression to it and change the values within quotes:

 

(((comp("Comp 1").layer("Deep Red Solid 1").transform.position)-(transform.position))*(-1))+(transform.position)

 

The above looks to the comp containing the layer you want to animate and takes its current position and subtracts the matte's current position from it, inverts the value and adds the result back to the matte's current position....it makes the matte move exactly the opposite direction of the layer you are animating.

 

It may help if your preComp is larger than the main comp but you will need to add some math to the expression above to make it work.

Edited by sbtread

Share this post


Link to post
Share on other sites

Set Matte (and Set Channel) both look at the entire comp size, not layer size. So you'd have to do some precomping to your matte layer and the layer you want to matte. Another option is the Stencil/Silhouette Alpha blend mode. Its not as versatile, but if you want to have 1 layer cut through a whole bunch, put your matte layer on the top of the layer stack and set its blend mode to "Stencil Alpha (or Stencil Luma, however your matte is set up) and it will cut down through all the layers in the comp and do its magic without having to precomp a bunch of layers.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...