Post #1660: i was referring this post , this doesnt work in 2.8

📋 Metadata

  • Author: BD3D
  • Date: 2018-11-19 22:24:25
  • Type: bug_report
  • Quality Score: 6/10
  • Reply to: post_01652
  • Replies (1): post_01662

🏷️ Tags

v1-20-x pie-menu custom-widgets intermediate unsolved

  • Pie Menu Editor
  • Custom tab
  • Command tab
  • Widget system

💬 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