mirror of
https://github.com/EatTheFuture/compify.git
synced 2025-01-22 00:09:11 -05:00
d7aa7cc8ca
It's a little hacky, but mostly works.
11 lines
269 B
Python
11 lines
269 B
Python
from math import inf
|
|
|
|
|
|
def leftmost_u(mesh_objects, uv_layer_name):
|
|
leftmost = inf
|
|
for obj in mesh_objects:
|
|
uvs = obj.data.uv_layers[uv_layer_name].data
|
|
for uv in uvs:
|
|
leftmost = min(leftmost, uv.uv[0])
|
|
return leftmost
|