I’m struggling on finding a tutorial on uv scripting, especially for uv.move_on_axis since I want a unifrom movement with the uvs
code below:
class FaceUV(bpy.types.Panel):
bl_label = 'Face UV swap'
bl_idname = 'FACE_PT_uv'
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
bl_context = "mesh_edit"
bl_category = 'Character Face Swap'
if bpy.context.active_object.mode != 'EDIT':
bpy.ops.object.editmode_toggle()
def draw(self, context):
ActiveFace = 0
layout = self.layout
obj = bpy.context.active_object
mesh = obj.data
row = layout.row()
row.label(text='Active Face')
row.label(text=str(ActiveFace))
row = layout.row()
row.label(text='Swap Face')
row = layout.row()
row.label(text=str(obj))
#row.operator('uv.move_on_axis', text= 'Move down')
#bpy.ops.uv.move_on_axis(faces, type= 'UDIM', axis= 'X', distance= '0.15')