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: Put all objects in the active collection #263

Closed
capnm opened this issue Jan 29, 2019 · 5 comments
Closed

Importer: Put all objects in the active collection #263

capnm opened this issue Jan 29, 2019 · 5 comments
Labels
enhancement New feature or request importer This involves or affects the import process

Comments

@capnm
Copy link
Contributor

capnm commented Jan 29, 2019

E.g. the Collada importer does it right (Collection 3):

image

@julienduroure julienduroure added enhancement New feature or request importer This involves or affects the import process labels Jan 29, 2019
@capnm capnm changed the title Importer: Put all objects in the selected collection Importer: Put all objects in the active collection Jan 29, 2019
@julienduroure
Copy link
Collaborator

Some thoughts:

  • Some glTF files has multiple scenes inside, so there is no "active collection" in that case

A solution may be (for 2.80 only):

  • add an importer option to choose to create objects in active collection or to create a new collection to create objects inside
  • for new scene created, create a default collection inside

@capnm
Copy link
Contributor Author

capnm commented Jan 29, 2019

Preferably, I would not make the 2.8x user interface more complicated.

  • in the (I think 98 %) case of single scene put everything in the current active collection (<=> Collada and other importers)
  • if glTF has multiple scenes, insert scene objects into the corresponding new scenes "Scene Collection"

@emackey
Copy link
Member

emackey commented Jan 30, 2019

Further thoughts about multiple scenes in KhronosGroup/glTF#1542

+1 for putting normal single-scene glTFs into the active collection, without adding any new UI for it.

@julienduroure
Copy link
Collaborator

I started the work in import_in_collection branch

Still need to be tested carefully with all cases (no scene, 1 scene, multiple scenes, existing yet in blender or not, ...)

@julienduroure
Copy link
Collaborator

It's now merged into master, and push into blender repo. Should be available soon inside blender

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

No branches or pull requests

3 participants