Tutorial 124: Linked Paths

Joe Clay | May 18, 2018

This week, we're going to link paths on different layers using a slider so that we can animate them as if they're a single stroke. This lets us easily pass lines around objects in 3D space without actually having to deal with 3D space and figuring out occlusion.

To start with this effect, you need to have a Controller null that has sliders for Start and End. Then you need a slider for either Elements or Bias depending upon which version of this technique you're using. If you have multiple strokes, bias won't work.

For multiple strokes this is the expression for start and end parameters in whatever stroke effect you're using. Just change the parts that say start to end for the end parameter.

start = thisComp.layer("Controller").effect("Start")("Slider"); //0
block = 100/thisComp.layer("Controller").effect("Elements")("Slider");
thisNum = thisLayer.name.substr(1,2);
rStart = (thisNum-1)*block;
rEnd = thisNum*block;

For two strokes where you need to control the bias, this will work for start/end parameters. Again, be sure to replace start with end for the end parameter.

bias = thisComp.layer("Controller").effect("Bias")("Slider");
start = thisComp.layer("Controller").effect("Start")("Slider");

Grab the Project Files

Get the project file through our Gumroad Store. This project file contains projects for AE CC 2014+. You might get a notice if you don't have Optical Flares, but it's not required for the technique. Everything else in the tutorial is included.

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

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