Exporter for Blender 2.80

I just downloaded the latest version of Blender 2.80 (posted June 1st called a “Beta”) and took a look.

First think I noticed the “Collections Outliner” seems to have changed again. Gone are most of the little icons - only the “eye” remains. (See image below.). However, there are now check boxes that seem to disable individual collections.

I tried to export to a .babylon file with two versions of the Blender exporter (6.0.10 and 6.0.12) both throw errors and no export. - with all collections enabled and one disabled.

The full fledged release of Blender 2.80 is now due in July I gather (moved from June?).

I know Jeff is a very busy guy and has been putting a lot of time into PBR materials, so where is the exporter headed now?

And I still really like and use the ability not to export certain layers and would really like this for Collections.

cheers, gryff :slightly_smiling_face:

8_combo

I had not noticed Icons are gone. Been that way for at least 2 weeks. Also, 6.0.10 will never work again. I did not do 6.0.12, & never tested it. 6.1.0 with the same change works. Post your log file.

If there is only an eye icon, then it would probably be for visible. Then pickable, & enabled will need to be custom properties unless somewhere else. The checkbox next to the collection would probably be used for export object culling, similar to layers from before.

@JCPalmer said :

If there is only an eye icon, then it would probably be for visible .

The checkbox next to the collection would probably be used for export object culling, similar to layers from before.

Exactly my thoughts Jeff. :slight_smile: However, I tried the exporter that comes installed with the Blender download and with the latest download from the BJS github site (posted yesterday) . So where is Exporter 6.1 hiding?

I watched a video posted 5 days ago from the Blender folks - the Blender API is stable and will not change. The changes to come are just “housekeeping”.

Ok from the logs:

========= An error was encountered =========
File “C:\Users\Peter\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\babylon_js\json_exporter.py”, line 111, in execute
mesh = Mesh(object, scene, self)
File “C:\Users\Peter\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\babylon_js\mesh.py”, line 170, in init
mesh = bpyMesh.to_mesh(bpy.context.depsgraph, True)
ERROR: ‘Context’ object has no attribute ‘depsgraph’

That is from the version that comes installed with Blender (v10/11) and this from the Exporter on github (v11/12) :

========= An error was encountered =========
File “C:\Users\Peter\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\babylon_js\json_exporter.py”, line 111, in execute
mesh = Mesh(object, scene, self)
File “C:\Users\Peter\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\babylon_js\mesh.py”, line 170, in init
mesh = bpyMesh.to_mesh(bpy.context.depsgraph, True)
ERROR: ‘Context’ object has no attribute ‘depsgraph’
========= end of processing =========

If I create a second collection and add a sphere to it, and then disable that second collection, I get this :

========= An error was encountered =========
File “C:\Users\Peter\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\babylon_js\json_exporter.py”, line 111, in execute
mesh = Mesh(object, scene, self)
File “C:\Users\Peter\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\babylon_js\mesh.py”, line 45, in init
self.isVisible = bpyMesh.visible_get()
ERROR: Error: Object ‘Sphere’ not in View Layer ‘View Layer’!

========= end of processing =========

And to add to my day, my KB died and we have had some nasty thunderstorms :unamused: :weary:

cheers, gryff :slight_smile:

Did some double checking, the zip file in 6.0.12 has a defective file. A fix was made to mesh.py, but the changes got reverted due to a conflict. Use this for 6.0.12.

6.0.10 is now garbage. Toss it. 6.1 is all the new additions to PBR / env files. Will look at all changes for the final 2.80

1 Like

@JCPalmer : Thanks for the link to 6.0.12 :slight_smile: Seems to work fine with my latest version of Blender 2.80 - the Beta version.

Don’t understand why when I look at the Preferences - it is listed as 6.0.13, but when I go to export I find “Babylon.js ver 6.0-beta 12”. But no matter, it works, although I still get error message about mesh “not in View Layer” when I disable a Collection. But sure it will get sorted as stability arrives.

cheers, gryff :slight_smile:

1 Like