我想以下面的方式在后台模式(没有GUI)中运行Blender:
blender myscene.blend --background --python myscript.py
运行命令后,Blender立即退出。 命令shell的输出显示在下面。 即使我没有传递--python myscript.py参数,也会发生同样的情况。
问题是什么?如何让Blender在后台模式下运行?
我正在使用Win7 64位。
非常感谢,
有约色
shell输出:
> "C:\Program Files\Blender Foundation\Blender\blender.exe" -b "C:\Work\data\Synthetic\Test_Scene\Blender\LuxRenderTest.blend" -P "C:\Work\code\Algo\Python\Alfea\alfea\format\blender\render_scene.py"
Read new prefs: C:\Users\igall\AppData\Roaming\Blender Foundation\Blender\2.78\config\userpref.blend
found bundled python: C:\Program Files\Blender Foundation\Blender\2.78\python
[Lux 2018-Jan-18 17:16:31] Attempting to import pylux module from "C:/Users/igall/AppData/Roaming/Blender Foundation/Blender/2.78/scripts/addons/luxrender"
[Lux 2018-Jan-18 17:16:31] Pylux module imported successfully
[Lux 2018-Jan-18 17:16:31] Using pylux version 1.6.0 Build 16219
[Lux 2018-Jan-18 17:16:31] Attempting to import pyluxcore module from "C:/Users/igall/AppData/Roaming/Blender Foundation/Blender/2.78/scripts/addons/luxrender"
[Lux 2018-Jan-18 17:16:31] Pyluxcore module imported successfully
[Lux 2018-Jan-18 17:16:31] Using pyluxcore version 1.6
[Lux 2018-Jan-18 17:16:32] Installed scene post-update handler
read blend: C:\Work\data\Synthetic\Test_Scene\Blender\LuxRenderTest.blend
Blender quit