mirror of
https://github.com/EatTheFuture/compify.git
synced 2025-01-22 16:28:40 -05:00
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
|