Adding Components From Center

Hello, Currently in my construction script I’m creating a row of static meshes, What I’d like to do though is create them branching out from the center since currently they are added in a line that’s offset to one side.

What I’d like to achieve is either of these two results, one being an odd number of meshes spawned from the center, or averaging the space between the number of meshes and offset that from the center like in these two mockups.

Any help would be appreciated thanks.

Here is the code I have currently, its adapted from the “Automatic Ring” BP from the documentation.

There’s more than 1 way of doing it, see if this gets you closer:

Image from Gyazo

There’s more than 1 way of doing it

Same thing minus reinvention of the wheel :wink:

Thank you so much!