and the code section if it helps: ``` # Save t...
# zenuv-chat
a
and the code section if it helps:
Copy code
# Save the original area type
    original_area_type = bpy.context.area.type

    # Switch to the UV Editor
    bpy.context.area.ui_type = 'UV'

    bpy.ops.uv.smart_project()

    bpy.context.scene.zen_uv.tr_type = 'ISLAND'
    bpy.context.scene.zen_uv.tr_mode = 'SCALE'
    bpy.context.scene.zen_uv.tr_scale[0] = 3
    bpy.context.scene.zen_uv.tr_scale[1] = 3

    bpy.ops.uv.zenuv_unified_transform(
        orient_island=False,
        pp_pos='bl',
        orient_direction='AUTO',
        rotate_direction='CCW',
        fit_keep_proportion=True,
        desc="Scale Islands from Down Left"
    )

    bpy.context.scene.zen_uv.tr_mode = 'DISTRIBUTE'
    bpy.ops.uv.zenuv_arrange_transform(
        limit=(1, 1)
    )

    # Switch back to the original area type
    bpy.context.area.type = original_area_type