alexoy Posted May 9, 2018 Author Share Posted May 9, 2018 Anybody, please? @Deltakosh, how to use instances if there are no tags for them? If there is a code in BJS that copies parent's tags into instances - something in the middle is not working Quote Link to comment Share on other sites More sharing options...
Guest Posted May 10, 2018 Share Posted May 10, 2018 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 Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted May 10, 2018 Share Posted May 10, 2018 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: 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. Quote Link to comment Share on other sites More sharing options...
alexoy Posted May 10, 2018 Author Share Posted May 10, 2018 @JCPalmer, now I'm talking about the same tag at least. The same tag also is not being shared among instances. My previous demo had only 1 tag, not unique for every instance 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.