Post #1652:
sa
📋 Metadata
- Author: roaoao
- Date: 2018-11-16 00:10:46
- Type:
answer - Quality Score: 8/10
- Reply to: post_01651
- Replies (3): post_01653, post_01658, post_01660
🏷️ Tags
popup-dialog custom-widgets intermediate solved
⚙️ Related PME Features
- 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