This script connects the selected layers with segments or triangles created with shape layers.
It was originally created to visualize Newton2 joints but as you will see, it can do much more.
Creates a single shape layer with a path connecting the selected layers (2D only). Use AutoBezier or Tension options to get rounded joint style.
Computes minimum spanning tree and draws each edge with a shape layer (2D and 3D support).
Triangulates the selected layers and draws each edge with a shape layer (2D and 3D support). If you want filled triangles (not just the edges), activate the Fill Triangles switch in the Options dialog. By default they will be filled with the same color, but you can also choose a source layer to colorize them. Note that for functions that create shape keyframes (Triangulation with Filled Triangles turned on, and Rope), keyframing is done within the comp work area.