Hi all.
This is the UV Curve of cylinder, which has a 60 mm in length.
In this example, there are three united groups inside the bounding boxes.
These groups need to be distributed at the same distance from each other.
In manual I make calculations as follows:
I use the addition operation, length of each BB group together (10.84 + 13.19 + 20.97 = 45), then the resulting value subtract from the length of UV curve (60 - 45 = 15).
The resulting difference (15) is divided into the number of objects or groups (3) 15/3 = 5
This value (5) will be the same distance between objects.
One of the distances (5) divide by 2. 5/2 = 2.5. The resulting value (2.5) will be the distance from the left and right sides of UV curve.
Can someone help write a script that would make these calculations and move objects automatically?
Thanks in advance.
2 posts - 2 participants


