-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Asobo unique ID option at export #144
Comments
indeed this has a maximum priority ...I'm on it |
@BrianDavos please let me know if this solve the issue so I can merge the PR |
Added to that, a possibility to add a custom unique ID to specified objects would be really beneficial. So when exporting with the option enabled, objects with a custom unique ID will use that custom ID while objects without a custom ID would get one on export. Also, because bones can have the same name on export (apparently), there would be a need for a unique ID for every object, otherwise the packagebuilder will throw an error citing a non unique ID is used. |
I fixed the typo and added the support for bones |
I'm not sure about this, I could easily add a per object property that allows setting manually the unique_id, however from the documentation the nodes and bones names in blender seems to be granted as unique. |
I see, isn't it better to manage the uniqueID directly by renaming the bone? |
It would of course be better to rename bones to a more unique name indeed. However, when exporting a model that you want to be merged by the simulator, the unique ID has to be truly unique, while the node name has to be the same as the node you want to merge with (This seems very vaguely documented in the SDK. As I read it, it should happen the other way around). This means, if every id has to be unique but the node name has to be the same to be merged, customising the unique ID would be beneficial to the user. What I currently have working in sim is the following are the following nodes which are merged: MAIN MODEL
SUBMODEL
So as you can see, the node name is the same, while the ID is truly unique. On the other hand, when I now change the node name to something different the merging process doesn't happen. Additionally when I switch it around, so node name different and unique ID the same I get an error. I get the same error if the node name and the unique ID are the same. So for external users to merge anything with a model, the unique ID has to be changeable. |
I see, I'll add a unique_id property per object |
You are an absolute legend! Thanks so much for the insanely fast changes you made. Aside from the things I mentioned, everything fully functions and I can no merge models in sim! |
my last push should solve the issue...let me know |
It fully functions as expected, thanks for the support! |
I'm closing as this is done in #145 |
Current Behavior
Currently models exported using the Blender plugin cannot easily be used for model merging unless the ID is manually added via text editor.
Hopefully this can be added, thanks in advance!
Expected Behavior
If everything works as it should (and if I fully understand the process), this should merge the models in sim and display both to add things like liveries.
Steps To Reproduce
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: