Problems with animations

I have a problem when I increase the size, the animation does not perform well.
When you increase the first value, the width increases and the doors appear that when you click it, they all rotate at the same time. The problem is when you change the width again and click on the doors, it no longer does the animation well.

It appears that when you change the width of the object, the new position of pivot points is wrong. Do you send new pivot point positions as a data output from Grasshopper? I am not able to review the code of your example, which is quite long. It would help if you could create a minimal example that produces a similar issue.