Think of it as “L” shapes instead of stripes. This way you can create a series of square pre-comps with the L shapes inside and position them in a zig zag (as seen from the top) and rotate the L shapes within the pre-comps to match the desired design.
You can also use the following plugin to arrange the layers automatically on a path:
https://www.motionboutique.com/polyline-plugin/
Tudor \”Ted\” Jelescu
Senior VFX Artist