Jump to content

'no attribute' export errors (Blender)


LV3
 Share

Recommended Posts

I've tried exporting about ten different random models (mostly from https://opengameart.org/ ) and have had exactly zero success.

The error I get is always get some variation of 

ERROR:  'NoneType' object has no attribute 'get_index_of_bone'

('get_index_of_bone' part might be something else depending on the model I'm trying to export)

Not being a 3d designer I have absolutely no idea what the above error could mean, so I feel there needs to be some sort of checklist for preparing models for babylon.js export, because although it works for primitives with no animation/bones/etc, it neither works nor provides sufficient feedback for real-world models.

 Are there any such resources available and if not where would be a good place to start one?

Link to comment
Share on other sites

Not buying the premise that random stuff off the internet constitutes a real-world model.  Usually this stuff was considered "done" by the authors once it rendered inside blender.  Since it was not thought that it was going to be exported, and they were not going to be charging for the content, the results are usually fairly poor.  Blend files which were made with very old versions of .blender also cause problems.

The error has to do with not lining up the skeleton with a mesh. I just put in better defensive code for this case.  A log warning will be generated in the .log file, and a .babylon file generation will not be stopped by an exception.  The skeleton will simply be ignored. Release 5.4.1 PR, in progress.

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...