godotengine / godot-proposals

Godot Improvement Proposals (GIPs)
MIT License
1.16k stars 97 forks source link

Allow import of Blender custom properties as metadata #10773

Open ev1313 opened 1 month ago

ev1313 commented 1 month ago

Describe the project you are working on

a game

Describe the problem or limitation you are having in your project

Metadata can only be applied in Godot + gets lost on reimporting a scene.

Custom properties can be added in Blender which fulfill a similar purpose, however they do not get imported.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

Blenders scripting capabilities allow creating sophisticated specialized editors in blender, which can provide additional metadata. They can - similar to godot nodes - add metadata per "node" ("custom properties" in Blender).

Allowing a direct import of these properties can allow the creation of easy workflows when modeling and afterwards importing models into the engine.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

Blenders supports some different types for the metadata, but i am confident a reasonable mapping can be found.

If this enhancement will not be used often, can it be worked around with a few lines of script?

in theory you could export the information manually from blend files and then use them like this. Or just don't use the feature.

Is there a reason why this should be core and not an add-on in the asset library?

no

ev1313 commented 1 month ago

Additionally:

gltf also supports metadata in a field called "extras". however it is not yet possible to export the custom properties in blender to gltf, but it would also be nice to have (since there are probably some editors supporting / using these).

AThousandShips commented 1 month ago

See also: