Tutorial 210: Textured Shadows

Joe Clay | Sep 4, 2020

In this After Effects tutorial, we build a mask that can follow another layer. This technique is helpful in creating shadows out of images and textures. It's extra handy because you can set it all up with one texture layer and have everything in your scene use that single layer for its shadow. This technique can also be used anywhere else you need a mask to follow a layer.

If you use this technique on anything, hit us up @workbench_tv! And check out Path Visualizer!

Expression

Make sure to change the layer in offset/xOffset below as well as provide the proper offsets as show in the tutorial.

Tracking x-only
xOffset = thisComp.layer("01").transform.xPosition - 1295;
pts = thisProperty.points();
for(i = 0; i < pts.length; i++) {
    pts[i] += [xOffset, 0];
}
inTans = thisProperty.inTangents();
outTans = thisProperty.outTangents();
createPath(pts, inTans, outTans, true);
Tracking xy
offset = thisComp.layer("01").transform.position - [1588, 511];
pts = thisProperty.points();
for(i = 0; i < pts.length; i++) {
    pts[i] += offset;
}
inTans = thisProperty.inTangents();
outTans = thisProperty.outTangents();
createPath(pts, inTans, outTans, true);

Become a Patron

If you'd like to help support Workbench, check out our Patreon page. Thank you for even considering clicking this link to support what we're doing. We appreciate it. Patrons get all sorts of benefits, from R&D files, setups, and elements to early product releases.

Check out our Patreon Today

Grab the Project Files

Get the project file through our Gumroad Store. This project file contains the After Effects file shown in the tutorial as well as the textures and graphics used. There is also a legacy version saved to AE v15.

If you're buying project files, consider becoming a Patron. At the $5/mo. tier, you get access to project files as they come out and some tutorials also come with additional BTS content showing more of the builds.

Get the project on Gumroad