Skip to content

[BUG] creating Operation fails with "IndexError: list index out of range in operation_ops.py, line 50" #287

@wolfgangr

Description

@wolfgangr

Describe the Bug
When I try to create a new operation, I get the error message


IndexError: list index out of range
Error: Python: Traceback (most recent call last):
  File "/home/wrosner/.config/blender/4.3/extensions/user_default/fabex/operators/operation_ops.py", line 50, in execute
    view3d = [a for a in context.screen.areas if a.type == "VIEW_3D"][0]
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^

When I try to load a preset, i get the error message

IndexError: list index out of range
Location: /home/wrosner/test/blender/blender-4.3.2-linux-x64/4.3/scripts/modules/bpy/ops.py:109
Error: Failed to execute the preset: RuntimeError('Error: Python: Traceback (most recent call last):\n  File "/home/wrosner/.config/blender/4.3/extensions/user_default/fabex/operators/operation_ops.py", line 50, in execute\n    view3d = [a for a in context.screen.areas if a.type == "VIEW_3D"][0]\n             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^\nIndexError: list index out of range\nLocation: /home/wrosner/test/blender/blender-4.3.2-linux-x64/4.3/scripts/modules/bpy/ops.py:109\n')
rna_uiItemR: property not found: CAM_MACHINE_Properties.output_g43_on_tool_change
/home/wrosner/.config/blender/4.3/extensions/user_default/fabex/ui/panels/machine_panel.py:111

To Reproduce
Steps to reproduce the behavior:

  1. ~/test/blender/blender-4.3.2-linux-x64/blender-launcher
  2. Install FabexCNC following https://github.com/vilemduha/blendercam
  3. create new blender file and add arbitrary STL (from FreeCAD)
  4. ... or (alternatively) ... follow the steps given here: https://blendercam.com/documentation/example-of-project/
  5. Go to "Rendering", set Render Engine to Fabex CNC/CAM
  6. hit [+] in [ Operations ] property to get started
  7. read above error on the screen and on the console

Expected Behavior

Workflow to "Add Pocket and Profile operations" as in
https://blendercam.com/documentation/example-of-project/

System Information:

  • OS: debian 10.13 (buster)
  • Blender Version: 4.3.2
  • Addon Version: [e.g. 1.0.61]

Error Message:
see above

Additional context
??

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions