Sorry to rez an ancient thread, but for future reference when people stumble onto here, here's how to re-UV basic polygon translations without hard-coding it:
- Save one set of UVs into variables at the start, before modifying any UV values.
- Every UV update, calculate the difference between the same UV values now and those starting values (reset distance), then add the new UV offset you want.
- Add this combined shifted UV distance to all UVs, since it's just the offset from the last position to the new position.
More advanced polygon deformations would need to multiply or divide from UV's number range to the positional number range. But individual edits would still subtract the reset distance above in some capacity, to line it up with the rest of the polygon.