I am trying to use Python to mirror the UVs of my mesh. The UVs get unwrapped just fine but when I run the mirror command it is just a normal bpy.ops.transform command and the object gets mirrored and the UVs do not change. I looked a bit online and it seems that I need to access the UVs through a couple loops, however I was unable to get them to mirror with that approach.
Does anyone know how to mirror the UVs in Python?
Mirror command from the scripting Info window:
bpy.ops.transform.mirror(orient_type='GLOBAL', orient_matrix=((1, 0, 0), (0, 1, 0), (0, 0, 1)), orient_matrix_type='GLOBAL', constraint_axis=(True, False, False), use_proportional_edit=False, proportional_edit_falloff='SMOOTH', proportional_size=1, use_proportional_connected=False, use_proportional_projected=False)