PCG dynamic distance depending on static mesh size

Hi

I’m using pcg and a spline to spawn random buildings along side a road.

Each SM has a different size, and I would like them to spawn next to be each other, so the distance between space needs to be variable.

Any idea how to get this to work?

Cheers!