Post #1652: sa

📋 Metadata

🏷️ Tags

popup-dialog custom-widgets intermediate solved

  • Popup Dialog Editor
  • Custom Icons
  • Python Scripting

💬 Content

saunam:

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:

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

Or this in Command tab:

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

name - is the screen name


❤️ 1 likes


🔗 View on Blender Artists