Jump to content

Blender Export error


 Share

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

materials.PNG.e8cfb55fdadbef05205c9f5cd751d182.PNG

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...