Post #2238: it is a popup dialog whit one button

📋 Metadata

🏷️ Tags

popup-dialog pie-menu custom-scripting advanced solved

  • Popup Dialog Editor
  • Pie Menu Editor
  • Property Editor
  • Python Scripting

💬 Content

it is a popup dialog whit one button
the button is set to Menu mode and call “LayersProperty” which is a Pie Menu Property
LayersProperty

Value Is

ls = locals(); ls.update(ret=0); [ls.update(ret=ls[“ret”] | 1 << i) for i, col in enumerate(C.scene.collection.children) if not col.hide_viewport]; return ls[“ret”]

Value

[setattr(col, “hide_viewport”, not value & 1 << i) for i, col in enumerate(C.scene.collection.children)]

Property Type = Enum
Multi-Select = Yes
Horizontal Layout = Yes


🔗 View on Blender Artists