Auto UV-Mapping in Python


I’m trying to create in Python a system which would generate as .fbx all letters of the alphabet(a-z,A-Z).

My code works, but the generated letters don’t have UV. How can I do so my letters would have basic UV? I don’t need them to be very efficient and all, I just need to apply a metal texture on it on the engine I’m using.

Any idea?

Thank you veru much!

You could do it with bpy.ops.uv.smart_project()

Just add a UV layer and convert their XY coords to UV’s

see simple example: