Skip to content

Smart loop/ring and cycle transform mode error fixes#42

Open
Kickskii wants to merge 3 commits into
maxivz:masterfrom
Kickskii:master
Open

Smart loop/ring and cycle transform mode error fixes#42
Kickskii wants to merge 3 commits into
maxivz:masterfrom
Kickskii:master

Conversation

@Kickskii
Copy link
Copy Markdown

@Kickskii Kickskii commented Apr 9, 2026

was having tracebacks when trying to use smart ring and smart loop actions in blender 5.1 the change fixes that now it works as it was before,

traceback from smart loop

Python: Traceback (most recent call last):
  File "D:\Common Folders\Documents\BlenderBuilds\stable\blender-5.1.0-stable.adfe2921d5f3\portable\scripts\addons\interactivetoolsblender\op\selection.py", line 179, in execute
    smart_loop()
    ~~~~~~~~~~^^
  File "D:\Common Folders\Documents\BlenderBuilds\stable\blender-5.1.0-stable.adfe2921d5f3\portable\scripts\addons\interactivetoolsblender\op\selection.py", line 124, in smart_loop
    organized_loops = organize_elements_by_loop(selection, mode, ring)
  File "D:\Common Folders\Documents\BlenderBuilds\stable\blender-5.1.0-stable.adfe2921d5f3\portable\scripts\addons\interactivetoolsblender\op\selection.py", line 62, in organize_elements_by_loop
    bpy.ops.mesh.loop_multi_select(ring=ring)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
AttributeError: Calling operator "bpy.ops.mesh.loop_multi_select" error, could not be found

traceback from smart ring

Python: Traceback (most recent call last):
  File "D:\Common Folders\Documents\BlenderBuilds\stable\blender-5.1.0-stable.adfe2921d5f3\portable\scripts\addons\interactivetoolsblender\op\selection.py", line 194, in execute
    smart_loop(ring=True)
    ~~~~~~~~~~^^^^^^^^^^^
  File "D:\Common Folders\Documents\BlenderBuilds\stable\blender-5.1.0-stable.adfe2921d5f3\portable\scripts\addons\interactivetoolsblender\op\selection.py", line 124, in smart_loop
    organized_loops = organize_elements_by_loop(selection, mode, ring)
  File "D:\Common Folders\Documents\BlenderBuilds\stable\blender-5.1.0-stable.adfe2921d5f3\portable\scripts\addons\interactivetoolsblender\op\selection.py", line 62, in organize_elements_by_loop
    bpy.ops.mesh.loop_multi_select(ring=ring)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
AttributeError: Calling operator "bpy.ops.mesh.loop_multi_select" error, could not be found

@Kickskii Kickskii marked this pull request as draft April 10, 2026 03:03
@Kickskii
Copy link
Copy Markdown
Author

its not working in 4.5 with the changes i made ill look into it

@Kickskii Kickskii closed this Apr 10, 2026
Refactor execute_loop_multi_select to handle exceptions for backward compatibility with older Blender versions.
@Kickskii Kickskii reopened this Apr 10, 2026
@Kickskii
Copy link
Copy Markdown
Author

Kickskii commented Apr 10, 2026

ok that works, i tested 3.6, 4.5, 5.0 and 5.1

@Kickskii Kickskii marked this pull request as ready for review April 10, 2026 03:15
@Kickskii
Copy link
Copy Markdown
Author

Kickskii commented Apr 10, 2026

i was also having error popouts from transform mode cycle so i got a fix for that too

    File "D:\K-Cycles 2026  5.1\portable\scripts\addons\interactivetoolsblender\op\misc.py", line 24, in execute
    with context.temp_override(**context_override):
         ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
TypeError: Region not found in area or screen
00:19.437  bpy.rna          | ERROR Python script error in MESH_OT_transform_mode_cycle.execute
00:19.437  operator         | ERROR Python: Traceback (most recent call last):
                            |   File "D:\K-Cycles 2026  5.1\portable\scripts\addons\interactivetoolsblender\op\misc.py", line 24, in execute
                            |     with context.temp_override(**context_override):
                            |          ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
                            | TypeError: Region not found in area or screen ```

fix 
``` TypeError: Region not found in area or screen
00:19.437  bpy.rna          | ERROR Python script error in MESH_OT_transform_mode_cycle.execute
00:19.437  operator         | ERROR Python: Traceback (most recent call last):
                            |   File "D:\K-Cycles 2026  5.1\portable\scripts\addons\interactivetoolsblender\op\misc.py", line 24, in execute
                            |     with context.temp_override(**context_override):
                            |          ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
                            | TypeError: Region not found in area or screen ```
@Kickskii Kickskii changed the title Smart loop and Smart ring selection fix Smart loop/ring and cycle transform mode error fixes Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant