(2020-05-06, 21:01)N. W. Perry Wrote: Should it be a straight find-&-replace for that text? Doing this, it complained that getPos was a nil value.
Sometimes I forget the rules of my own scripting api
![Smile Smile](https://forums.ldraw.org/images/smilies/smile.png)
getRef does work with groups but it might have a different center, so in the end it shouldn't matter as long the group's center is also on the same x (or whatever plane coordinate) as the other items in the selection.
Otherwise it shouldn't even run the calculation as the first line stops the execution if there are less then 3 items in the selection. This would be true if one of them were a group while those where excluded.