Three.js: Blender Exporter Crashes trying to export scene

Created on 23 Jan 2017  路  7Comments  路  Source: mrdoob/three.js

Description of the problem

Blender Exporter Fails to produce a .json file and throws an error that could be improved with clarity

Traceback (most recent call last):
  File "/Users/kev/Library/Application Support/Blender/2.78/scripts/addons/io_three/__init__.py", line 812, in execute
    exporter.export_scene(filepath, settings)
  File "/Users/kev/Library/Application Support/Blender/2.78/scripts/addons/io_three/exporter/__init__.py", line 20, in inner
    func(filepath, options, *args, **kwargs)
  File "/Users/kev/Library/Application Support/Blender/2.78/scripts/addons/io_three/exporter/__init__.py", line 51, in export_scene
    scene_.parse()
  File "/Users/kev/Library/Application Support/Blender/2.78/scripts/addons/io_three/exporter/scene.py", line 102, in parse
    self._parse_textures()
  File "/Users/kev/Library/Application Support/Blender/2.78/scripts/addons/io_three/exporter/scene.py", line 243, in _parse_textures
    tex_inst = texture.Texture(texture_name, self)
  File "/Users/kev/Library/Application Support/Blender/2.78/scripts/addons/io_three/exporter/texture.py", line 24, in __init__
    self[constants.WRAP] = (num[wrap[0]], num[wrap[1]])
KeyError: 'repeat'

location: <unknown location>:-1

location: <unknown location>:-1

Is there any way to get better logging from this?

Most helpful comment

Hey guys! Not sure if https://github.com/mrdoob/three.js/pull/12261 break anything!
I will investigate and get back soon 馃檪

All 7 comments

Do you mind sharing the .blend?

Seems to be an issue with textures. If I don't export textures it completes successfully.

stemming form this line : https://github.com/mrdoob/three.js/blob/dev/utils/exporters/blender/addons/io_three/exporter/texture.py#L24

I think 96f9ed2d058642ee88bdc32c8d9473203ef8e8df fixed that. Do you mind trying the latest?

https://github.com/mrdoob/three.js/tree/dev/utils/exporters/blender

I think we can close this issue, see https://github.com/mrdoob/three.js/issues/10928#issuecomment-286774322

Got the same issue with latest version of the exporter from dev branch:

bildschirmfoto 2017-10-09 um 20 57 50

Mac OS X, Blender 2.79

Blend-File:
http://aqio.de/Blender_data_v3.7z

Settings:
bildschirmfoto 2017-10-09 um 21 35 27

Any idea @mrdoob or @Mugen87 ?

/ping @cg-cnu

Hey guys! Not sure if https://github.com/mrdoob/three.js/pull/12261 break anything!
I will investigate and get back soon 馃檪

Was this page helpful?
0 / 5 - 0 ratings