Yoshimura pattern folding

Hi, i’m new in GH. How can i increase the amount of folding along y axis by increasing folding number? I wanna obtain something like shape of “C” from top when the pattern is totally folded.

here is the script.

180808 Yoshimura Forum_re.gh (19.7 KB)