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

Link Mask Path to Null Object (Child/Parent)

New Here ,
Mar 25, 2025 Mar 25, 2025

Hi everyone!

 

I'm kind of a self-learner in AE and I know I'm missing some basic points. After some researchs I couldn't find an answer to this (sorry, maybe I don't have the right keywords, I'm a french speaker) but I'm sure there's a way. Here's the thing:

 

-On a plate layer, I have a mask that I tracked upon main layer.

-But after applying this tracking to the mask path, I'd like to adjust the mask position (on all the keypoints at once) without re-doing the tracking. So what I'd think first is to add a Null Object which would contain the position adjustment, then link the MASK PATH only (not the whole plate layer) as child to the Null Object.

-Of course, as shown on the screenshot, the expression is not correct, but I couldn't find precisely how to adapt the expression to the situation. Would you have a remedy for this?

 

(Sorry my AE is in French too!)

Thanks in advance.

 

TOPICS
Expressions
57
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
New Here ,
Mar 25, 2025 Mar 25, 2025

If I may, I'd like to add an aside question about masks:

 

When I apply a Corner Pin to a layer, is there a way to draw masks on this layer in a way that they directly apply to the visible shape of it in master comp?

Example: I have a main background layer A with a TV screen; I have a Layer B (precomp) to embed into the screen, with a Corner Pin applied. But then, if I wanna work on this master comp, like doing a refining mask on a edge of the layer B, the shape that I draw onto what I can see from the master comp doesn't apply on the visible, but it applies just like Layer B were still in fullscreen.

So the option must be to work into the precomp (with master comp locked in Visualizer), but then again I've got some issues with blending options.

 

If you can help with this also, I'd be the happiest on earth.

 

Thanks!

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 ,
Mar 25, 2025 Mar 25, 2025
LATEST

It's hard to figure out exactly what you're trying to do, but this example might help. If you have a mask path and you want to offset all the mask points by an amount equal to the position of a null, you could use an expression like this:

L = thisComp.layer("Null 1");
p = points();
newP = [];
for (i = 0; i < p.length; i++) newP.push(p[i] + L.position);
createPath(newP,inTangents(),outTangents(),isClosed())
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