📋 Metadata

💬 Content

i was referring this post , this doesnt work in 2.8

roaoao:

I am trying to add the “Choose Screen layout” and I get the “can’t add this widget” message.
Is there any way to do it?

Some complex widgets can be added only manually.
You can use this code in Custom tab:

Copy to clipboard

L.template_ID(C.window, "screen", new="screen.new", unlink="screen.delete")

Or this in Command tab:

Copy to clipboard

bpy.ops.pme.screen_set(name="Default")

name - is the screen name


🔗 View on Blender Artists