Curtains help kangaroo

Hi there!

So I’ve been trying to use this really cool script from another thread for making curtain like meshes. The only problem is that the script dealt with a pretty small/simple curtain. I’m trying to create more detailed meshes to get nuanced folds but it runs incredibly slow which makes my process of iteration quite lengthy… is this problem unavoidable with more detailed meshes? or is there possibly something that I could try change in the script?

Any help would be much appreciated, Thanks!

Curtain (51.0 KB)

Link to original thread: Curtain with Kangaroo - Grasshopper