Exponentially increasing vertical curtain grid spacing whilst also rotating curtain panel family with Dynamo

I am trying to use Dynamo to exponentially increase the vertical curtain grid spacing from the middle of the curtain wall, fanning out at the edges.

I want to simultaneously control rotation of the curtain panel family which is currently being controlled by a parameter / separate script. I have included a link to the rotation script.

Ideally both actions can be controlled in one script.