Blend2Java.py 尝试导出时显示错误

Blend2Java.py Shows Errors While Trying To Export

尝试导出到 Vuforia java,我从 (http://sourceforge.net/projects/blend2java/?source=typ_redirect) 下载了 blend2java 所以,我创建了一个简单的立方体。 Select 编辑模式并单击 'a' 到 select 所有点。然后在文本编辑器中,我导入 export.py 文件。但是当我 运行 它时,它给了我这些错误:

File "xxx/xxx//xx/export.py" line 14, print "Gzip Module not supported"

Synytax Error: Missing Paranthesis in call to 'print'

locatoin <unknown location>:-1

这是 python2 和 python3 之间的语法变化之一。

python 2.x 你会用

print "some text"

在python3.x你用

print("some text")

这意味着该脚本是为早于 2.50 的 blender 版本编写的。自 2.50 blender 使用 python3.

blend2java 的最后一次更新是在 2004 年,所以我不能说我希望它再次更新。

我建议查看哪些 3D 文件格式可以使用 java 轻松导入并使用匹配的 exporter from blender. Some of the addons in that list are included in blender and just need to be enabled others will need to be installed