XaiJu
Workbench
Workbench

patreon


Tutorial 97: Improved Single Layer Track Mattes

Now I can push content a little early to Patrons before this post becomes public, which is pretty cool. So the newest tutorial is up! I happened to get it done a little early. So check it out.

I received a comment on an old tutorial and realized there is a way to improve upon it now that we have access to mask path points in expressions. The expression (link above) looks at our first position key and uses that to calculate an offset so that the mask that we apply this to stays put. Take note, if you need to tie it to a different key or a differently named mask, you'll need to modify the expression.

If you're a patron with access to my Quiver expressions, it should already be saved in there for you if you want to download a txt file to use with Quiver. That's probably a good idea since Patreon kind of messes it up. But here it is just in case!

``p = transform.position;

s = transform.scale/100;

offset = p.key(1).value - p.value;

offset = [offset[0] / s[0], offset[1] / s[1]];

pts = mask("Mask 1").maskPath.points();

for(i = 0; i < pts.length; i++) {

pts[i] = pts[i] + offset;

}

createPath(pts);

Tutorial 97: Improved Single Layer Track Mattes

More Creators