Well, I'm trying to change the values of UV Vertex (see the picture):
When I change the values, selected part of UV (orange selection) will move.
How I can do this change USING PYTHON?
My code untill now...
import bpy
import bmesh
(...)
for area in bpy.context.screen.areas:
area.type == 'VIEW_3D'
bpy.ops.object.editmode_toggle()
#+ grab the current area
original_area = 'IMAGE_EDITOR'
scene = bpy.context.scene
for count, ob in enumerate(bpy.context.selected_objects):
if ob.type == 'MESH':
scene.objects.active = ob
#+ switch to the image editor to perform transforms etc
for area in bpy.context.screen.areas:
area.type == 'IMAGE_EDITOR'
bpy.context.area.type = 'IMAGE_EDITOR'
bpy.ops.object.mode_set(mode='EDIT', toggle=False)
bpy.ops.mesh.reveal()
bpy.ops.mesh.select_all(action='SELECT')
#+ select the uvs
bpy.ops.uv.select_all(action='SELECT')
bpy.ops.transform.translate(value=(0.125, 0, 0), constraint_axis=(True, False, False))
#+ return to the original mode where the script was run
for area in bpy.context.screen.areas:
area.type == 'IMAGE_EDITOR'
bpy.ops.object.mode_set(mode='OBJECT', toggle=False)
Still moving the object. Tks