Copying scene unhides hidden collections #63174

Open
opened 2019-04-01 12:00:00 +02:00 by Marcin Twarowski · 10 comments

Windows-10-10.0.16299 64 Bits
GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 419.67

Blender 2.80 (sub 53), branch: blender2.7, commit date: 2019-03-31 21:52, hash: b936d7b16c

hidden_collections_copy_scene_bug.blend

Open attached file. There are two hidden collections.
Make a copy of the scene using either "Link Object Data" or "Full Copy".
Collections in the newly created scene will be set to visible.

Windows-10-10.0.16299 64 Bits GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 419.67 Blender 2.80 (sub 53), branch: blender2.7, commit date: 2019-03-31 21:52, hash: `b936d7b16c` [hidden_collections_copy_scene_bug.blend](https://archive.blender.org/developer/F6905080/hidden_collections_copy_scene_bug.blend) Open attached file. There are two hidden collections. Make a copy of the scene using either "Link Object Data" or "Full Copy". Collections in the newly created scene will be set to visible.

Added subscriber: @MarcinTwarowski

Added subscriber: @MarcinTwarowski

#64209 was marked as duplicate of this issue

#64209 was marked as duplicate of this issue
Bastien Montagne was assigned by Jacques Lucke 2019-04-02 15:25:27 +02:00

This is actually a bit tricky to get it working, because since those view options are stored in part into the ViewLayer 'wrapper' around Collections, it means we need to somehow preserve those ViewCollection structs when duplicating Collections themselves, and then do some remapping... especially with the infamous 'master' collection that's making things pretty annoying (got a solution fixing collections flags issue, but now it's objects/bases flags that get messed up :((( ).

This is actually a bit tricky to get it working, because since those view options are stored in part into the ViewLayer 'wrapper' around Collections, it means we need to somehow preserve those ViewCollection structs when duplicating Collections themselves, and then do some remapping... especially with the infamous 'master' collection that's making things pretty annoying (got a solution fixing collections flags issue, but now it's objects/bases flags that get messed up :((( ).

Added subscriber: @rs2128

Added subscriber: @rs2128

Added subscriber: @Forby

Added subscriber: @Forby

I'm super interested in this ?. I use a sort of template starter scene in 2.79 as a starting point with specific layer visibility for my particularly unique workflow. Trying to do this with 2.8/2.81 adds a lot of time resetting view layer visibility settings each time I duplicate a starter scene. Hope it can be figured out ?

I'm super interested in this ?. I use a sort of *template* starter scene in 2.79 as a starting point with specific layer visibility for my particularly unique workflow. Trying to do this with 2.8/2.81 adds a lot of time resetting view layer visibility settings each time I duplicate a starter scene. Hope it can be figured out ?
Bastien Montagne was unassigned by Dalai Felinto 2019-12-23 16:34:43 +01:00

Added subscriber: @mont29

Added subscriber: @mont29

Added subscriber: @filibis

Added subscriber: @filibis

Update with 2.82 alpha: Creating scene with "Linked Copy" carries over all visibility options correctly. However creating scene with "Full Copy" enables "Hide in Viewport" option (It carries over "Disable in Viewport" and "Disable in Render" options correctly).

Update with 2.82 alpha: Creating scene with "Linked Copy" carries over **all visibility options** correctly. However creating scene with "Full Copy" enables "Hide in Viewport" option (It carries over "Disable in Viewport" and "Disable in Render" options correctly).

Also currently with 2.82a: creating a scene with "Full Copy" seems to only carry over the indirect/holdout settings from the last collection in the outliner list.
holdout-indirect.jpg

Also currently with 2.82a: creating a scene with "Full Copy" seems to only carry over the indirect/holdout settings from the last collection in the outliner list. ![holdout-indirect.jpg](https://archive.blender.org/developer/F8402251/holdout-indirect.jpg)
Philipp Oeser removed the
Interest
User Interface
label 2023-02-10 09:25:51 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
7 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: blender/blender#63174
No description provided.