Check this cloth simulation tutorial in Cinema 4D by Athanasios Pozantzis, we will see how to create a cloth animation that follows a Spline. It needs an initial setup process, after which, the spline can be edited and the cloth will adapt accordingly.
How to animate cloth following along a spline in C4D?
We can also animate the Width of the cloth to create fancy curtain effects. We will utilize the Spline WrapDeformer, on a Bely Object, and use that belt to hang our cloth.