This is a really good solution. Thank you.
If you have a higher resolution of the socketblueprint.jpg image I would appreciate you sharing it.
I don’t understand some of the variables as they are hard to read. Also where is the Construction Script taking place?
I needed to convert locations from particle system in 3Ds Max so I ended up using Mesher (Compound Objects) to convert particle cubes to geometry. Then I used Explode option in Editable Mesh (with tolerance of 180) to make separate objects. After that I centered pivots for each object to the center of the object (can be done automatically for the entire selection) and finally I wrote a little script in Max to create a Locator for each selected object and translate it to its pivot.
Here is the script in case anyone has the same problem.
mySel = selection;
for i in mySel do(
loc = point()
loc.cross = on
loc.position = i.position