Jump to content

Tagging in Blender


Cosmack
 Share

Recommended Posts

Hi @Cosmack, welcome to the BabylonJS forum.  Sorry for the slow replies.

Have you done some testing?

We have a tags system, as you likely know.  But a search in Blender docs for "tags"... returns nothing.

Can you give us more info?

https://github.com/BabylonJS/Babylon.js/tree/master/Exporters/Blender

No mention of tags or custom properties in there.

Here is a seriously detailed document about the fancy Tower of Babel exporter for Blender.

https://github.com/BabylonJS/Extensions/tree/master/QueuedInterpolation/Blender

SOME talk of custom properties, but nothing obviously pertinent.

Also, back at the Blender Quickstart page... In the category "The Blender/Python API can’t (yet)"...

Assign custom properties to every type.

Currently, it seems custom properties are most often used on Blender data objects.

https://www.blender.org/api/blender_python_api_current/info_quickstart.html#custom-properties

Again, sorry for the slow (and possibly disappointing) reply.  Perhaps others have more/better info.

Link to comment
Share on other sites

There is a Place on the Data properties of Meshes, cameras, armatures, & lights for users to add their custom properties, which are saved in the Blend file.  Tags are likely processed if found in a .BABYLON file though I have not checked.  Nor do I know how to identify custom properties in Python other than the ones defined by the addon.  Those ones I already know the name of.

The ID field of meshes is not really used in Blender exports.  You could edit a .babylon file, and place any value you wish, but you will need to redo this every export.

I would just give your meshes unique names.  Make a named array / dictionary in Java script somewhere.  Put values in the dictionary for each mesh.

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