What paths do is something similar to capture, but the difference is that you don't need to create the trajectory with frames, it's enough to draw it in a single frame as a line.
The line must be pixel-perfect, 1px thick, it has problems if the lines overlap.
You draw the path:

You just select the layer where you have the drawing and that's it:

