How?
I can only manage to uv.unwrap the image to the selected face, but when I try to rotate the mapped texture after that… no success:
bpy.ops.object.editmode_toggle()
bpy.ops.object.material_slot_select()
bpy.ops.uv.unwrap(method=‘ANGLE_BASED’, fill_holes=True, correct_aspect=True, use_subsurf_data=False, margin=0.001)
bpy.context.area.type = ‘IMAGE_EDITOR’
bpy.ops.transform.rotate(value=0, axis=(0, 0, -1), constraint_axis=(False, False, False), constraint_orientation=‘GLOBAL’, mirror=False, proportional=‘DISABLED’, proportional_edit_falloff=‘SMOOTH’, proportional_size=1, snap=False, snap_target=‘CLOSEST’, snap_point=(0, 0, 0), snap_align=False, snap_normal=(0, 0, 0), release_confirm=False)
help ? o/