Can't access bpy.data.screens by name. #62033

Closed
opened 2019-02-28 05:49:18 +01:00 by Oleg · 9 comments

System Information
Operating system: Windows 10
Graphics card: NVIDIA GTX 950

Blender Version
Broken:
2.8, 2019-02-28, b1c3d91aed

Worked:
2.8, 2019-02-27, 168d3fd528

Short description of error
Can't access bpy.data.screens by name.

изображение.png

Exact steps for others to reproduce the error
Open Python Console and type

bpy.data.screens['Layout']
**System Information** Operating system: Windows 10 Graphics card: NVIDIA GTX 950 **Blender Version** Broken: 2.8, 2019-02-28, b1c3d91aed42 Worked: 2.8, 2019-02-27, 168d3fd528c4 **Short description of error** Can't access bpy.data.screens by name. ![изображение.png](https://archive.blender.org/developer/F6727981/изображение.png) **Exact steps for others to reproduce the error** Open Python Console and type ``` bpy.data.screens['Layout'] ```
Author

Added subscriber: @DotBow

Added subscriber: @DotBow

Added subscriber: @ZedDB

Added subscriber: @ZedDB
Campbell Barton was assigned by Sebastian Parborg 2019-02-28 11:17:36 +01:00

This seems a bit weird indeed:

>>> bpy.data.screens.items()

[('Default', bpy.data.screens['Animation']), ('Default', bpy.data.screens['Compositing']), ('Default', bpy.data.screens['Layout']), ('Default', bpy.data.screens['Modeling']), ('Default', bpy.data.screens['Rendering']), ('Default', bpy.data.screens['Scripting']), ('Default', bpy.data.screens['Sculpting']), ('Default', bpy.data.screens['Shading']), ('Default', bpy.data.screens['Texture Paint']), ('Default.001', bpy.data.screens['Default.006']), ('Default.001', bpy.data.screens['Default.007']), ('Default.001', bpy.data.screens['Default.008']), ('Default.001', bpy.data.screens['Default.016']), ('Default.001', bpy.data.screens['Default.020']), ('Default', bpy.data.screens['UV Editing'])]
This seems a bit weird indeed: ``` >>> bpy.data.screens.items() [('Default', bpy.data.screens['Animation']), ('Default', bpy.data.screens['Compositing']), ('Default', bpy.data.screens['Layout']), ('Default', bpy.data.screens['Modeling']), ('Default', bpy.data.screens['Rendering']), ('Default', bpy.data.screens['Scripting']), ('Default', bpy.data.screens['Sculpting']), ('Default', bpy.data.screens['Shading']), ('Default', bpy.data.screens['Texture Paint']), ('Default.001', bpy.data.screens['Default.006']), ('Default.001', bpy.data.screens['Default.007']), ('Default.001', bpy.data.screens['Default.008']), ('Default.001', bpy.data.screens['Default.016']), ('Default.001', bpy.data.screens['Default.020']), ('Default', bpy.data.screens['UV Editing'])] ```

Note that screens internally are layouts for workspaces, the internal names aren't displayed - so they can be different.

Note that screens internally are layouts for workspaces, the internal names aren't displayed - so they can be different.

Added subscriber: @brecht

Added subscriber: @brecht

I believe this was caused by a cleanup commit, if we can't fix it quickly better just revert that.

I believe this was caused by a cleanup commit, if we can't fix it quickly better just revert that.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

This only worked because of 4669c3692c which needed to be reverted.

@ZedDB pointed out a related bug caused by screens using Screen.layout_name not ID.name for the struct identifier.

This can be made into a separate report. closing.

This only worked because of 4669c3692c which needed to be reverted. @ZedDB pointed out a related bug caused by screens using `Screen.layout_name` not `ID.name` for the struct identifier. This can be made into a separate report. closing.

Reported strange bpy.data.screens behavior as #62199

Reported strange `bpy.data.screens` behavior as #62199
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
4 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#62033
No description provided.