Hi!
I’m using Blender 2.82a
Blender2Babylon exporter script 6.4.1
I’d like to try customizing the script but I’m getting an error when I try to reload the script. I have no experience writing add-ons for Blender so that may not be helping.
To reproduce the error:
Give the default cube a node material with Vertex Color feeding Base Color
Try exporting to .babylon (it should work)
Then hit F3 and search ‘reload scripts’ to reload scripts
Try exporting again
Get this error
Traceback (most recent call last):
File “C:\Users\melsov\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\babylon_js_init_.py”, line 67, in execute
exporter.execute(context, self.filepath)
File “C:\Users\melsov\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\babylon_js\json_exporter.py”, line 115, in execute
mesh = Mesh(object, scene, self)
File “C:\Users\melsov\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\babylon_js\mesh.py”, line 146, in init
recipe = BakingRecipe(bpyMesh, exporter)
File “C:\Users\melsov\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\babylon_js\materials\baking_recipe.py”, line 100, in init
self.bakedMaterial = BJSMaterial(firstMatUsingNodes, exporter)
File “C:\Users\melsov\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\babylon_js\materials\material.py”, line 62, in init
self.bjsNodeTree = AbstractBJSNode.readMaterialNodeTree(bpyMaterial.node_tree)
AttributeError: ‘BJSMaterial’ object has no attribute ‘node_tree’
location: :-1
Thanks for any help!