Dynamic ribbon band (se video reference)


Im looking for a way to recreate something like the effect shown in this video:

Basically, I’m wondering how to make a script that can reproduce this kind of dynamic.
A band that bends onto itself within a given space, surface and roof. This is probably a horribly imprecise way way to describe it, but maybe you understand from the video.

Im in Rhino 7 with grasshopper, and not very advanced in operating grasshopper.