Jump to content

Issues with instances created in Blender


alexoy
 Share

Recommended Posts

This has to come from the Blender exporter. Perhaps you may want to help and try to fix it in the exporter?

Else we will have to wait for @JCPalmer to have some time to do it

 

A good idea is at least to open an issue on the exporter repo to track your need :)

Link to comment
Share on other sites

On 3/23/2018 at 3:23 PM, JCPalmer said:

@alexoy, checking in Blender, duplicates share a data directory.  The exporter custom properties are in the data directory, as shown on the data tab, so there may only be a single version.  Blender's sharing of data precludes unique tags, so there will be no exporter changes for this.  The "2" in the picture, shows 2 meshes sharing the same data, just like materials and everything else in Blender:

tags2.jpg.2cf1def0e7b9f37c0d766ed189fda844.jpg

I would recommend to use your mesh name to hold your tags.  Something like the format of 'mymesh:tag1,tag2'.  Then have a loop to transfer:
 


for (var i = 0, len = scene.meshes.length; i < len; i++){
    var name = scene.meshes[i].name;
     if (name.startsWith('myMesh:')) {
          scene.meshes[i].tags = name.substr(7);
     }
}

 

@Deltakosh,  Duplicate objects in Blender result in sharing everything except a name, so unique tags for instances are not possible.

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