Ok, python people.
Accepts NO parameters. Useful parameters, like a name…
x = bpy.ops.screen.new()
Does NOT return an object -x- which, in turn, can be named.
Here’s what I had to do:
Create a set variable of the screens.
Create new screen
Hash the difference between the set and the new screen set
Name the odd one out.
screen_set = bpy.data.screens.items() bpy.ops.screen.new() new_screen = [x for x in bpy.data.screens.items() if x not in screen_set] bpy.data.screens[new_screen].name = 'Pudding'
That seems like a lot of faffin’ about to name a screen.
A more elegant means exists, perhaps?