I'm doing a project, and I use blender to set up a scene (mainly I have two plane meshes) and with scripting I do some operations on the meshes. I installed blender as a python module using conda env and it worked(I can import bpy), but it throws an error that my object doesn't exist, it looks like it can't load the scene from the .blend file I'm trying to run a blender python script without having to install blender, is it possible?
Asked
Active
Viewed 54 times
bpy.ops.wm.open_mainfilewill throw an error, should you manage to get the bpy python files installed on the server. – james_t Jul 05 '22 at 11:59blender --background --python myscript.py– Crantisz Jul 05 '22 at 13:36blender/3.xx/scripts/addonsfolder. I just set a symlink in/usr/bin/localto whatever .exe is the latest version I want it to point at. The answer you posted should work. – Jakemoyo Jul 05 '22 at 14:14