Post #2238: it is a popup dialog whit one button
📋 Metadata
- Author: Sebastian_cg
- Date: 2019-04-30 12:37:13
- Type:
answer - Quality Score: 8/10
- Reply to: post_02236
🏷️ Tags
popup-dialog pie-menu custom-scripting advanced solved
⚙️ Related PME Features
- 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