Blender通过ssh运行自定义脚本

2024-05-29 05:04:46 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经为blender创建了以下自定义脚本 https://github.com/Korchy/Ozbend_Engraving_Internal

我试图通过SSH使用它 像这样

blender -b -P __init__.py

But im getting the following error
AL lib: (WW) alc_initconfig: Failed to initialize backend "pulse"
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
    ALSA lib pcm.c:2501:(snd_pcm_open_noupdate) Unknown PCM default
    AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': No such file or directory
Traceback (most recent call last):
  File "/home/solomio/public_html/engravingcreator/__init__.py", line 19, in <module>
    from . import engraving_internal_ops
SystemError: Parent module '' not loaded, cannot perform relative import

我怎样才能解决这个问题?你知道吗


Tags: ornoconfiglibconferrorcarddirectory
1条回答
网友
1楼 · 发布于 2024-05-29 05:04:46

你试图运行的“脚本”是一个插件。你不运行这个脚本,你安装并启用插件来添加额外的功能搅拌机。启用插件后,可以运行一个python脚本来运行它提供的操作符,类似于任何内置操作符。你知道吗

This answer演示如何在后台运行blender时自动执行,对于链接到的加载项,下载repo的zip并将zip文件的路径传递给addon_install。你知道吗

使加载项执行的命令应该是bpy.ops.engravinginternal.start()

相关问题 更多 >

    热门问题