Skip to content
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

Importer add-on support (Import hooks) #1377

Closed
Benjamin-Dobell opened this issue Apr 15, 2021 · 2 comments
Closed

Importer add-on support (Import hooks) #1377

Benjamin-Dobell opened this issue Apr 15, 2021 · 2 comments
Labels
addon enhancement New feature or request importer This involves or affects the import process

Comments

@Benjamin-Dobell
Copy link

Benjamin-Dobell commented Apr 15, 2021

Is your feature request related to a problem? Please describe.
It's currently not possible (without resorting to hacks) to write a companion add-on (implementation of a GLTF extension) which supports round-tripping from Blender to GLTF and back again.

Describe the solution you'd like
A reciprocal glTF2ImportUserExtension API which provides similar, albeit opposite, hooks to glTF2ExportUserExtension.

Describe alternatives you've considered

  • Monkey patching.
  • Provide a separate import feature which duplicates the GLTF parsing and inserts nodes derived from custom GLTF extensions into the appropriate place within the scene.
  • Add the functionality to io_scene_gltf2 directly.

Additional context
I've written a very basic add-on which exports lightmaps from Blender into GLTF, represented by a custom material extension. The lightmap is picked up from the glTF Settings pseudo-group i.e. same workflow as occlusion maps.

I'd like to be able to import lightmaps back into Blender.

@julienduroure julienduroure added addon enhancement New feature or request importer This involves or affects the import process labels Apr 16, 2021
@MeFisto94
Copy link

I want to bump that, are there any opinions on this?
What work is required? Could this be done relatively simple by starting off from the export extension?

@julienduroure
Copy link
Collaborator

I forgot to close this ticket, there is now an import addon extension system

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addon enhancement New feature or request importer This involves or affects the import process
Projects
None yet
Development

No branches or pull requests

3 participants