Link Mask Path to Null Object (Child/Parent)
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
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())

