Closed CarstenHoyer closed 1 year ago
Unfortunately, there is an annoying limitation with running these scripts in Blender currently. They must not access any context (and operators access context). I've thought about solutions for the fundamental problem of triggering operators in Blender from the outside multiple times. I did not find the time to implement any of that yet though.... That's still on my todo list.
Oh, so I guess it is the same thing at play here: https://github.com/JacquesLucke/blender_vscode/issues/68 ?
same issue with Blender v2.83.2 but i confirm that it works well with Blender v2.80.rc no ops issues, adding mesh causes no crash.
@JacquesLucke Did you find a solution for this yet? I have problems with all bpy.ops.mesh.xx functions it seems and maybe this is related.
I am closing this issue. This was resolved with this commit https://github.com/JacquesLucke/blender_vscode/commit/621e275d9000e571f4b4d10cbde7abdd1cf15e0a
OS: macOS Mojave 10.14.5 Blender version: Version 2.81 (2.81 2019-11-20) VS Code: Version: 1.42.1 Commit: c47d83b293181d9be64f27ff093689e8e7aed054
>Python: Select interpreter
/usr/local/bin/python3 -> /Applications/Blender.app/Contents/Resources/2.81/python/bin/python3.7m>Blender: Start --> pick /Applications/Blender.app/Contents/MacOS/blender
With this simple script:
>Blender: Run Script
Debug console
Terminal
Blender crash report