Raghavender Mylagary Posted February 3, 2017 Share Posted February 3, 2017 Hi, I am trying to export a scene i have created in Blender using babylon exporter. While Exporting i got the below errors. ========= An error was encountered ========= File "C:\Users\ragha\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\io_export_babylon.py", line 330, in execute mesh = Mesh(object, scene, nextStartFace, forcedParent, nameID, self) File "C:\Users\ragha\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\io_export_babylon.py", line 780, in __init__ recipe = BakingRecipe(object) File "C:\Users\ragha\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\io_export_babylon.py", line 1863, in __init__ self.billboardMode = BILLBOARDMODE_ALL if len(mesh.material_slots) == 1 and mesh.material_slots[0].material.game_settings.face_orientation == 'BILLBOARD' else BILLBOARDMODE_NONE ERROR: 'NoneType' object has no attribute 'game_settings' ========= end of processing ========= Thanks, Raghavender Mylagary Room.blend Room.log Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted February 4, 2017 Share Posted February 4, 2017 Is LeftCouch your mesh, or a scavenge from a BlendSwap like site? This is kind of an old, damaged .blend. If you even try to switch to the Game render, Blender produces error messages. There is no material assigned to many meshes. All modern versions of Blender automatically assign a new default material, when you create a mesh. You need to actively delete all materials on a mesh to produce that error on at least 2.65 and up. You may go through all your meshes, and add a material. Quote Link to comment Share on other sites More sharing options...
Raghavender Mylagary Posted February 4, 2017 Author Share Posted February 4, 2017 I have copied the couches from other sources. So is it the problem with the couches and if so why? Also if i remove all the materials of the meshes and create them in Babylon does it works? Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted February 5, 2017 Share Posted February 5, 2017 It is more than the couches, I as I remember. I used the couch, since the exporter encountered it first & thus the exception is listed in the log file after the "processing started for" message. If you do not fix all instances of the problem, the error will just move. I think you got the fix wrong, or I misled you in my explanation by included extra info that was not strictly required. The problem is there is not even the framework for a material for some meshes. You need to at least add it. Nothing needs deleted. Look at the material properties tab of the couch. There is none of the usual stuff there. Just a "New" button & an empty list of materials. Compare that to a mesh you create. There is no Preview section, Transparency section, etc. Just go thru every mesh, and hit the "New" button where there is one & nothing else. It exported for me. It will still complain that there is no material repeatedly. That is because some may have the framework, but nothing as a material Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.