How can I edit the movement of this origami pattern

Uploading: origami.gh…
hello
I write this pattern to stimulate movement of origami shell in related to the photo I uploaded…could everyone help me what is the problem with my algorithm and how can I edit it proper to this photo?
thanks in advance


origami.gh (23.1 KB)

DUPLICATE THREAD!!!