glTF-Blender-IO icon indicating copy to clipboard operation
glTF-Blender-IO copied to clipboard

Discussion: Extension Hooks

Open pepperoni505 opened this issue 2 years ago • 4 comments

Currently to add any extensions to the import/export process, you must use one of the existing hooks. However, these do not cover every case of what an extension might need. While yes, one can submit a pull request to add new hooks, it's eventually going to get to a point where there are way too many hooks.

My question is if it's possible to migrate to a new system of sorts. I'm not sure what that would look like, but I'd be willing to help implement this

pepperoni505 avatar Mar 18 '22 02:03 pepperoni505

Why don't you just make a patched version of the addon? The source code could be cleaned up to make this easier (eg. using relative imports only).

scurest avatar Mar 18 '22 02:03 scurest

I'm not really familiar with patching in python. Would you mind providing a simple example?

pepperoni505 avatar Mar 18 '22 12:03 pepperoni505

I mean forking the code and making whatever changes you want.

scurest avatar Mar 18 '22 18:03 scurest

I'm currently working on the addition of import/export hooks for extras and extensions

elmajime avatar Mar 30 '22 08:03 elmajime