- User Since
- Thu, Feb 7, 6:56 PM (1 w, 5 d)
Tue, Feb 12
Ok. Thanks for Your help, and sorry for posting it here.
Sorry, Your blend file was not empty, my mistake. But the error still occurs.
This .blend file You attached is (as far as I know) default init blend file, so I can't check what You have changed. Please attach the changed .py file.
I followed Your directions:
- I removed enumerate (It was there for testing purposes anyway), but this did not solve the problem.
- I assume that Your step 2 was passing 'deepcopy(branch['sub_items'])' instead of ''branch['sub_items'] into the recursive function. It did not solve the problem for me (did it for You?). Please remember that (like I wrote in the comments of my py file) calling operator again does not replicate the error: "I have to restart blender to repeat the error". And after that changes error is still there. Also, the problem from Your link is little different from mine, because my problem is with 'current_item' variable (not with ''branch['sub_items']"). I am not passing 'current_item' to the recursive call, and as far as I know my current_tems variables from every scope point to a different object, coz I create it in the scope, not passing it as a parameter.
Fri, Feb 8
I regret to write: it is not it :(.
I changed init to sub_init and I steel get TypeError: unsubscriptable object.