I have a screen layout in my project file which appears to be corrupt. If I try selecting it via the Blender UI, Blender freezes and I have to quit out of the application.
I would like to remove this screen layout from the project, and I was thinking I could do it in Python with something like this…
import bpy bpy.data.screens.remove(bpy.data.screens["bad"])
…but am unable to do so. I get an “AttributeError: ‘bpy_prop_collection’ object has no attribute ‘remove’” message.
What is the correct syntax to remove a screen layout? Thanks!
**** UPDATE: Here’s an example .blend file that demonstrates the problem. See if you can delete the screen layout called “bad”: [ATTACH]497741[/ATTACH]