Outliner collection / object duplicate hierarchy #57064

Closed
opened 2018-10-04 15:59:49 +02:00 by Brecht Van Lommel · 19 comments

It would be useful to be able to duplicate an entire hierarchy of collections of objects.

It would be useful to be able to duplicate an entire hierarchy of collections of objects.

Added subscriber: @brecht

Added subscriber: @brecht
Member

Added subscribers: @dfelinto, @JulienKaspar

Added subscribers: @dfelinto, @JulienKaspar
Member

I'm beginning to think this should be a sub-menu when right clicking a collection in the outliner instead of a separate "Duplicate Hierarchy" option.
Somewhat like this?

Duplicate =

  • Duplicate (New collection with linked contents)
  • Duplicate Hierarchy (Duplicate entire hierarchy and make all contents single user)
  • Duplicate Linked Hierarchy (Same as "Duplicate Linked" operation [linked object data but new objects] but with the hierarchy of the collection)

I have no idea about the naming right now.
@dfelinto What do you think about this whole thing?

I'm beginning to think this should be a sub-menu when right clicking a collection in the outliner instead of a separate "Duplicate Hierarchy" option. Somewhat like this? Duplicate = - Duplicate (New collection with linked contents) - Duplicate Hierarchy (Duplicate entire hierarchy and make all contents single user) - Duplicate Linked Hierarchy (Same as "Duplicate Linked" operation [linked object data but new objects] but with the hierarchy of the collection) I have no idea about the naming right now. @dfelinto What do you think about this whole thing?
Member

Added subscriber: @WilliamReynish

Added subscriber: @WilliamReynish
Member

@JulienKaspar I like the idea, and in fact got Duplicate Linked Hierarchy to work here (not committed yet). Duplicate Hierarchy is more tricky, but I'm trying to find a way to do it while keeping the code manageable.

@WilliamReynish any remarks on that task?

@JulienKaspar I like the idea, and in fact got Duplicate Linked Hierarchy to work here (not committed yet). Duplicate Hierarchy is more tricky, but I'm trying to find a way to do it while keeping the code manageable. @WilliamReynish any remarks on that task?

No remarks. This makes sense to add.

No remarks. This makes sense to add.
Member

@JulienKaspar what is your thought on the "Duplicate" operator? As far as its children collections are concerned?
Right now we are literally linking the old nested collections inside the new one parent collection.
(it is a bit complicated to explain, easier if you try in 2.80 without the patch even).

@JulienKaspar what is your thought on the "Duplicate" operator? As far as its children collections are concerned? Right now we are literally linking the old nested collections inside the new one parent collection. (it is a bit complicated to explain, easier if you try in 2.80 without the patch even).
Member

@dfelinto I never really saw the current "Duplicate"operator in the outliner as that useful in comparison to a proper "duplicate hierarchy" or "duplicate linked hierarchy" operator.
It can become useful sometimes but often isn't even that much of a time saver in comparison to just creating a new collection, box selecting the old contents you need and LMB + Ctrl dragging them to the new one.

@dfelinto I never really saw the current "Duplicate"operator in the outliner as that useful in comparison to a proper "duplicate hierarchy" or "duplicate linked hierarchy" operator. It can become useful sometimes but often isn't even that much of a time saver in comparison to just creating a new collection, box selecting the old contents you need and LMB + Ctrl dragging them to the new one.
Member

Right, but part of this is because its current functionality is really that limited.
If we were to change it (e.g., copy collections as new collections, respecting hierarchy, but leave the same objects linked) it would be useful no?

Right, but part of this is because its current functionality is really that limited. If we were to change it (e.g., copy collections as new collections, respecting hierarchy, but leave the same objects linked) it would be useful no?
Member

Yes I guess that would be more useful than the current way it works but I can't remember if I ever needed that kind of operator. This would be for very specific corner cases.

Yes I guess that would be more useful than the current way it works but I can't remember if I ever needed that kind of operator. This would be for very specific corner cases.
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Dalai Felinto self-assigned this 2019-03-01 15:49:10 +01:00
Member

Committed:

  • e7ea99af1b0d933b9323be39d8b1c6f683bfba52
  • 7d4e1ac727f3cd697d137935a9dbd30d5cfe5192

I end up removing the original operator. It was indeed useless. Now collection follows the logic of objects (as far as UI goes), so only duplicate collection and duplicate linked options.

Committed: * e7ea99af1b0d933b9323be39d8b1c6f683bfba52 * 7d4e1ac727f3cd697d137935a9dbd30d5cfe5192 I end up removing the original operator. It was indeed useless. Now collection follows the logic of objects (as far as UI goes), so only duplicate collection and duplicate linked options.
Member

@dfelinto Just tried it out and it works great! One confusing thing is the name "Duplicate Collection". It implies that only that collection will be duplicated instead of the entire hierarchy.
I think overall the naming and tooltips are becoming a bit confusing but that's perhaps a different issue.

@dfelinto Just tried it out and it works great! One confusing thing is the name "Duplicate Collection". It implies that only that collection will be duplicated instead of the entire hierarchy. I think overall the naming and tooltips are becoming a bit confusing but that's perhaps a different issue.
Member

What about:

  • Duplicate Linked
  • Duplicate Hierarchy

As the two options?

What about: * Duplicate Linked * Duplicate Hierarchy As the two options?

Sounds good I think with those new names.

Sounds good I think with those new names.
Member

Maybe.

The naming for delete is pretty clear: "Delete" for the what you selected and "Delete Hierarchy" for the entire Hierarchy of the selection.
"Duplicate Linked" doesn't imply the hierarchy part. It could just as well be the default duplicate linked operator for objects.
Naming it "Duplicate Hierarchy Linked" is clearer but maybe too long?

I think there should eventually be a place for the default operators "Duplicate Objects" and "Duplicate Linked" in the outliner as well so the new ones should be compatible in terms of naming with those.

Maybe. The naming for delete is pretty clear: "Delete" for the what you selected and "Delete Hierarchy" for the entire Hierarchy of the selection. "Duplicate Linked" doesn't imply the hierarchy part. It could just as well be the default duplicate linked operator for objects. Naming it "Duplicate Hierarchy Linked" is clearer but maybe too long? I think there should eventually be a place for the default operators "Duplicate Objects" and "Duplicate Linked" in the outliner as well so the new ones should be compatible in terms of naming with those.

Added subscriber: @nokipaike

Added subscriber: @nokipaike

please, duplicate and also istantiate

it would be useful to use "shift or ctrl or alt + drag" to duplicate or instantiate, as happens with icons in operating systems, and a third combination needed for a menu appears asking if you want to duplicate or instantiate

please, duplicate and also istantiate it would be useful to use "shift or ctrl or alt + drag" to duplicate or instantiate, as happens with icons in operating systems, and a third combination needed for a menu appears asking if you want to duplicate or instantiate

This issue was referenced by blender/cycles@12e2570d0d

This issue was referenced by blender/cycles@12e2570d0d7a6c844a6e2436b8c58920d52a2951
Sign in to join this conversation.
No Milestone
No project
No Assignees
6 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: studio/blender-studio#57064
No description provided.