I've read all questions and answers about moving UV island here. The most relevant are these:
But they do not solve my problem, my code is just not working. What is wrong with my code?
for area in bpy.context.screen.areas: if area.type == 'IMAGE_EDITOR': bpy.ops.transform.translate(value=(125, 0, 0), constraint_axis=(False, False, False), constraint_orientation='GLOBAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1) else: area.type = 'VIEW_3D'
This is the result:
The other areas changed to VIEW_3D, but the IMAGE_EDITOR area did not make the translate. The translate is still happening to the object in VIEW_3D.